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 slauth

Dependencies

(18 total, 11 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 base32^0.4.00.4.0up to date
 base64^0.10.10.22.0out of date
 byteorder^1.3.11.5.0up to date
 bytes^0.4.121.6.0out of date
 hmac^0.7.00.12.1out of date
 jni^0.120.21.1out of date
 ring^0.16.00.17.8out of date
 serde^1.01.0.198up to date
 serde_bytes^0.11.10.11.14up to date
 serde_cbor ⚠️^0.10.10.11.2out of date
 serde_derive^1.01.0.198up to date
 serde_json^1.01.0.116up to date
 serde_repr^0.1.40.1.19up to date
 sha-1^0.8.10.10.1out of date
 sha2^0.8.00.10.8out of date
 time ⚠️^0.1.420.3.36out of date
 untrusted^0.7.00.9.0out of date
 webpki ⚠️^0.21.00.22.4out of date

Dev dependencies

(7 total, 6 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 bytes^0.4.121.6.0out of date
 hex^0.3.20.4.3out of date
 rand^0.50.8.5out of date
 saphir^0.9.43.1.1out of date
 serde_cbor ⚠️^0.10.10.11.2out of date
 serde_json^1.0.391.0.116up to date
 uuid^0.7.41.8.0out of date

Security Vulnerabilities

serde_cbor: Flaw in CBOR deserializer allows stack overflow

RUSTSEC-2019-0025

Affected versions of this crate did not properly check if semantic tags were nested excessively during deserialization.

This allows an attacker to craft small (< 1 kB) CBOR documents that cause a stack overflow.

The flaw was corrected by limiting the allowed number of nested tags.

time: Potential segfault in the time crate

RUSTSEC-2020-0071

Impact

Unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.

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:

  • at
  • at_utc
  • now

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:

webpki: webpki: CPU denial of service in certificate path building

RUSTSEC-2023-0052

When this crate is given a pathological certificate chain to validate, it will spend CPU time exponential with the number of candidate certificates at each step of path building.

Both TLS clients and TLS servers that accept client certificate are affected.

This was previously reported in https://github.com/briansmith/webpki/issues/69 and re-reported recently by Luke Malinowski.

webpki 0.22.1 included a partial fix and webpki 0.22.2 added further fixes.