This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate tantivy

Dependencies

(42 total, 19 outdated, 1 insecure)

CrateRequiredLatestStatus
 atomicwrites^0.2.20.4.4out of date
 base64^0.10.00.23.1out of date
 bit-set^0.50.11.1out of date
 bitpacking^0.80.9.3out of date
 byteorder^1.01.5.0up to date
 census^0.20.4.2out of date
 chrono^0.40.4.45up to date
 combine>=3.6.0, <4.0.04.6.8out of date
 crossbeam^0.50.8.5out of date
 downcast-rs^1.02.0.2out of date
 fail^0.30.5.1out of date
 failure^0.10.1.8up to date
 fnv^1.0.61.0.7up to date
 fs2^0.40.4.3up to date
 futures^0.10.3.34out of date
 futures-cpupool^0.10.1.8up to date
 htmlescape^0.3.10.3.1up to date
 itertools^0.80.15.0out of date
 levenshtein_automata^0.10.2.1out of date
 log^0.40.4.34up to date
 lz4^1.201.28.1up to date
 memmap^0.70.7.0up to date
 murmurhash32^0.20.4.0out of date
 notify^48.2.0out of date
 num_cpus^1.21.17.0up to date
 once_cell^0.21.21.4out of date
 owned-read^0.40.4.1up to date
 owning_ref ⚠️^0.40.4.1insecure
 regex^1.01.13.1up to date
 rust-stemmers^1.11.2.0up to date
 scoped-pool^1.01.0.0up to date
 serde^1.01.0.229up to date
 serde_derive^1.01.0.229up to date
 serde_json^1.01.0.154up to date
 smallvec^0.61.16.3out of date
 snap^0.21.1.2out of date
 stable_deref_trait^1.0.01.2.1up to date
 tantivy-fst^0.10.5.0out of date
 tempdir^0.30.3.7up to date
 tempfile^3.03.27.0up to date
 uuid^0.7.21.28.0out of date
 winapi^0.30.3.9up to date

Dev dependencies

(5 total, 3 outdated, 1 insecure)

CrateRequiredLatestStatus
 fail^0.30.5.1out of date
 maplit^11.0.2up to date
 matches^0.1.80.1.10up to date
 rand^0.70.10.3out of date
 time ⚠️^0.1.420.3.55insecure

Security Vulnerabilities

time: Potential segfault in the time crate

RUSTSEC-2020-0071

Impact

The affected functions set environment variables without synchronization. On Unix-like operating systems, this can crash in multithreaded programs. Programs may segfault due to dereferencing a dangling pointer if an environment variable is read in a different thread than the affected functions. This may occur without the user's knowledge, notably in the Rust standard library or third-party libraries.

The affected functions from time 0.2.7 through 0.2.22 are:

  • time::UtcOffset::local_offset_at
  • time::UtcOffset::try_local_offset_at
  • time::UtcOffset::current_local_offset
  • time::UtcOffset::try_current_local_offset
  • time::OffsetDateTime::now_local
  • time::OffsetDateTime::try_now_local

The affected functions in time 0.1 (all versions) are:

  • time::at_utc
  • time::at
  • time::now
  • time::tzset

Non-Unix targets (including Windows and wasm) are unaffected.

Patches

Pending a proper fix, the internal method that determines the local offset has been modified to always return None on the affected operating systems. This has the effect of returning an Err on the try_* methods and UTC on the non-try_* methods.

Users and library authors with time in their dependency tree should perform cargo update, which will pull in the updated, unaffected code.

Users of time 0.1 do not have a patch and should upgrade to an unaffected version: time 0.2.23 or greater or the 0.3 series.

Workarounds

A possible workaround for crates affected through the transitive dependency in chrono, is to avoid using the default oldtime feature dependency of the chrono crate by disabling its default-features and manually specifying the required features instead.

Examples:

Cargo.toml:

chrono = { version = "0.4", default-features = false, features = ["serde"] }
chrono = { version = "0.4.22", default-features = false, features = ["clock"] }

Commandline:

cargo add chrono --no-default-features -F clock

Sources:

owning_ref: Multiple soundness issues in `owning_ref`

RUSTSEC-2022-0040

  • OwningRef::map_with_owner is unsound and may result in a use-after-free.
  • OwningRef::map is unsound and may result in a use-after-free.
  • OwningRefMut::as_owner and OwningRefMut::as_owner_mut are unsound and may result in a use-after-free.
  • The crate violates Rust's aliasing rules, which may cause miscompilations on recent compilers that emit the LLVM noalias attribute.

safer_owning_ref is a replacement crate which fixes these issues. No patched versions of the original crate are available, and the maintainer is unresponsive.