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 azul-webrender

Dependencies

(32 total, 9 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 azul-webrender-api^0.62.00.62.0up to date
 bincode^1.01.3.3up to date
 bitflags^1.22.6.0out of date
 byteorder^1.01.5.0up to date
 core-foundation^0.90.10.0out of date
 core-graphics^0.220.24.0out of date
 core-text^1921.0.0out of date
 cstr^0.20.2.12up to date
 derive_more^0.991.0.0out of date
 dwrote^0.110.11.2up to date
 etagere^0.2.40.2.13up to date
 euclid^0.22.00.22.11up to date
 freetype^0.70.7.2up to date
 fxhash^0.2.10.2.1up to date
 gl-context-loader^0.1.30.1.8up to date
 lazy_static^11.5.0up to date
 libc^0.20.2.162up to date
 log^0.40.4.22up to date
 azul-wr_malloc_size_of^0.0.10.0.1up to date
 malloc_size_of_derive^0.10.1.3up to date
 num-traits^0.20.2.19up to date
 objc^0.20.2.7up to date
 plane-split^0.170.18.0out of date
 png^0.160.17.14out of date
 rayon^11.10.0up to date
 ron^0.6.20.8.1out of date
 serde^1.01.0.215up to date
 smallvec ⚠️^11.13.2maybe insecure
 svg_fmt^0.40.4.4up to date
 time ⚠️^0.10.3.36out of date
 tracy-rs^0.1.20.1.2up to date
 azul-webrender-build^0.0.20.0.2up to date

Dev dependencies

(2 total, 2 outdated)

CrateRequiredLatestStatus
 mozangle^0.3.30.5.2out of date
 rand^0.40.8.5out of date

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:

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.