This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate datafusion

Dependencies

(45 total, 19 outdated, 4 possibly insecure)

CrateRequiredLatestStatus
 ahash^0.80.8.11up to date
 apache-avro^0.140.17.0out of date
 arrow^34.0.053.2.0out of date
 async-compression^0.3.140.4.17out of date
 async-trait^0.1.410.1.83up to date
 bytes^1.41.8.0up to date
 bzip2 ⚠️^0.4.30.4.4maybe insecure
 chrono^0.4.230.4.38up to date
 dashmap^5.4.06.1.0out of date
 datafusion-common^20.0.043.0.0out of date
 datafusion-execution^20.0.043.0.0out of date
 datafusion-expr^20.0.043.0.0out of date
 datafusion-jit^20.0.023.0.0out of date
 datafusion-optimizer^20.0.043.0.0out of date
 datafusion-physical-expr^20.0.043.0.0out of date
 datafusion-row^20.0.027.0.0out of date
 datafusion-sql^20.0.043.0.0out of date
 flate2^1.0.241.0.35up to date
 futures^0.30.3.31up to date
 glob^0.3.00.3.1up to date
 hashbrown^0.130.15.1out of date
 indexmap^1.9.22.6.0out of date
 itertools^0.100.13.0out of date
 lazy_static^1.4.01.5.0up to date
 log^0.40.4.22up to date
 num-traits^0.20.2.19up to date
 num_cpus^1.13.01.16.0up to date
 object_store ⚠️^0.5.40.11.1out of date
 parking_lot^0.120.12.3up to date
 parquet^34.0.053.2.0out of date
 paste^1.01.0.15up to date
 percent-encoding^2.2.02.3.1up to date
 pin-project-lite^0.2.70.2.15up to date
 rand^0.80.8.5up to date
 rayon^1.51.10.0up to date
 smallvec ⚠️^1.61.13.2maybe insecure
 sqlparser^0.320.52.0out of date
 tempfile^33.14.0up to date
 tokio ⚠️^1.01.41.1maybe insecure
 tokio-stream^0.10.1.16up to date
 tokio-util^0.7.40.7.12up to date
 url^2.22.5.3up to date
 uuid^1.01.11.0up to date
 xz2^0.10.1.7up to date
 zstd^0.120.13.2out of date

Dev dependencies

(16 total, 8 outdated)

CrateRequiredLatestStatus
 async-trait^0.1.530.1.83up to date
 bigdecimal^0.3.00.4.6out of date
 criterion^0.40.5.1out of date
 csv^1.1.61.3.1up to date
 ctor^0.1.220.2.8out of date
 doc-comment^0.30.3.3up to date
 env_logger^0.100.11.5out of date
 half^2.2.12.4.1up to date
 nix^0.26.10.29.0out of date
 postgres-protocol^0.6.40.6.7up to date
 postgres-types^0.2.40.2.8up to date
 rstest^0.16.00.23.0out of date
 rust_decimal^1.27.01.36.0up to date
 sqllogictest^0.13.00.23.0out of date
 thiserror^1.0.372.0.3out of date
 tokio-postgres^0.7.70.7.12up to date

Security Vulnerabilities

smallvec: Buffer overflow in SmallVec::insert_many

RUSTSEC-2021-0003

A bug in the SmallVec::insert_many method caused it to allocate a buffer that was smaller than needed. It then wrote past the end of the buffer, causing a buffer overflow and memory corruption on the heap.

This bug was only triggered if the iterator passed to insert_many yielded more items than the lower bound returned from its size_hint method.

The flaw was corrected in smallvec 0.6.14 and 1.6.1, by ensuring that additional space is always reserved for each item inserted. The fix also simplified the implementation of insert_many to use less unsafe code, so it is easier to verify its correctness.

Thank you to Yechan Bae (@Qwaz) and the Rust group at Georgia Tech’s SSLab for finding and reporting this bug.

tokio: reject_remote_clients Configuration corruption

RUSTSEC-2023-0001

On Windows, configuring a named pipe server with pipe_mode will force ServerOptions::reject_remote_clients as false.

This drops any intended explicit configuration for the reject_remote_clients that may have been set as true previously.

The default setting of reject_remote_clients is normally true meaning the default is also overridden as false.

Workarounds

Ensure that pipe_mode is set first after initializing a ServerOptions. For example:

let mut opts = ServerOptions::new();
opts.pipe_mode(PipeMode::Message);
opts.reject_remote_clients(true);

bzip2: bzip2 Denial of Service (DoS)

RUSTSEC-2023-0004

Working with specific payloads can cause a Denial of Service (DoS) vector.

Both Decompress and Compress implementations can enter into infinite loops given specific payloads entered that trigger it.

The issue is described in great detail in the bzip2 repository issue.

Thanks to bjrjk for finding and providing the patch for the issue and the maintainer responsibly responding to release a fix quickly.

Users who use the crate with untrusted data should update the bzip2 to 0.4.4.

object_store: Apache Arrow Rust Object Store: AWS WebIdentityToken exposure in log files

RUSTSEC-2024-0358

Exposure of temporary credentials in logs in Apache Arrow Rust Object Store, version 0.10.1 and earlier on all platforms using AWS WebIdentityTokens.

On certain error conditions, the logs may contain the OIDC token passed to AssumeRoleWithWebIdentity. This allows someone with access to the logs to impersonate that identity, including performing their own calls to AssumeRoleWithWebIdentity, until the OIDC token expires. Typically OIDC tokens are valid for up to an hour, although this will vary depending on the issuer.

Users are recommended to use a different AWS authentication mechanism, disable logging or upgrade to version 0.10.2, which fixes this issue.

Details

When using AWS WebIdentityTokens with the object_store crate, in the event of a failure and automatic retry, the underlying reqwest error, including the full URL with the credentials, potentially in the parameters, is written to the logs.

Thanks to Paul Hatcherian for reporting this vulnerability