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 heim

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 version-sync^0.90.9.5up to date

Crate heim-common

Dependencies

(12 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 libc^0.20.2.172up to date
 cfg-if^1.01.0.0up to date
 futures-core^0.30.3.31up to date
 futures-util^0.30.3.31up to date
 pin-utils^0.1.0-alpha.40.1.0up to date
 uom^0.31.10.37.0out of date
 backtrace^0.30.3.75up to date
 nix ⚠️^0.200.30.1out of date
 lazy_static^1.3.01.5.0up to date
 winapi>=0.3.80.3.9up to date
 mach^0.3.20.3.2up to date
 core-foundation^0.90.10.0out of date

Dev dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 futures-executor^0.30.3.31up to date
 version-sync^0.90.9.5up to date
 static_assertions^1.11.1.0up to date

Crate heim-derive

Dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 proc-macro2^1.01.0.95up to date
 quote^1.01.0.40up to date
 syn^1.02.0.101out of date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 version-sync^0.90.9.5up to date

Crate heim-runtime

Dependencies

(4 total, 1 outdated)

CrateRequiredLatestStatus
 futures^0.30.3.31up to date
 futures-timer^3.03.0.3up to date
 once_cell^1.71.21.3up to date
 smol^1.22.0.2out of date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 version-sync^0.90.9.5up to date
 rusty-fork^0.3.00.3.0up to date

Crate heim-host

Dependencies

(8 total, 2 outdated)

CrateRequiredLatestStatus
 log^0.40.4.27up to date
 cfg-if^1.01.0.0up to date
 platforms^1.13.5.0out of date
 libc^0.20.2.172up to date
 lazy_static^1.3.01.5.0up to date
 mach^0.3.20.3.2up to date
 winapi>=0.3.80.3.9up to date
 ntapi^0.30.4.1out of date

Dev dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 futures^0.30.3.31up to date
 smol^1.22.0.2out of date
 version-sync^0.90.9.5up to date

Crate heim-cpu

Dependencies

(9 total, 2 outdated)

CrateRequiredLatestStatus
 futures^0.30.3.31up to date
 lazy_static^1.3.01.5.0up to date
 cfg-if^1.01.0.0up to date
 libc^0.20.2.172up to date
 glob^0.30.3.2up to date
 smol^1.22.0.2out of date
 ntapi^0.30.4.1out of date
 winapi>=0.3.80.3.9up to date
 mach^0.3.20.3.2up to date

Dev dependencies

(4 total, 1 outdated)

CrateRequiredLatestStatus
 smol^1.22.0.2out of date
 futures^0.30.3.31up to date
 version-sync^0.90.9.5up to date
 futures-timer^3.03.0.3up to date

Crate heim-memory

Dependencies

(5 total, all up-to-date)

CrateRequiredLatestStatus
 cfg-if^1.01.0.0up to date
 libc^0.20.2.172up to date
 winapi>=0.3.80.3.9up to date
 mach^0.3.20.3.2up to date
 lazy_static^1.3.01.5.0up to date

Dev dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 smol^1.22.0.2out of date
 version-sync^0.90.9.5up to date

Crate heim-disk

Dependencies

(7 total, 3 outdated)

CrateRequiredLatestStatus
 cfg-if^1.01.0.0up to date
 bitflags^1.0.42.9.1out of date
 libc^0.20.2.172up to date
 widestring^0.4.01.2.0out of date
 winapi>=0.3.80.3.9up to date
 mach^0.3.20.3.2up to date
 core-foundation^0.90.10.0out of date

Dev dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 smol^1.22.0.2out of date
 futures^0.30.3.31up to date
 version-sync^0.90.9.5up to date

Crate heim-net

Dependencies

(7 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 cfg-if^1.01.0.0up to date
 bitflags^1.02.9.1out of date
 macaddr^1.01.0.1up to date
 libc^0.20.2.172up to date
 nix ⚠️^0.200.30.1out of date
 winapi^0.30.3.9up to date
 widestring^0.41.2.0out of date

Dev dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 smol^1.22.0.2out of date
 futures^0.30.3.31up to date
 version-sync^0.90.9.5up to date

Crate heim-process

Dependencies

(12 total, 3 outdated)

CrateRequiredLatestStatus
 cfg-if^1.01.0.0up to date
 libc^0.20.2.172up to date
 lazy_static^1.3.01.5.0up to date
 ordered-float^2.15.0.0out of date
 memchr^2.22.7.4up to date
 async-trait^0.10.1.88up to date
 futures^0.30.3.31up to date
 smol^1.22.0.2out of date
 ntapi^0.3.30.4.1out of date
 winapi>=0.3.80.3.9up to date
 mach^0.3.20.3.2up to date
 darwin-libproc^0.2.00.2.0up to date

Dev dependencies

(6 total, 2 outdated)

CrateRequiredLatestStatus
 smol^1.22.0.2out of date
 futures^0.30.3.31up to date
 futures-timer^3.03.0.3up to date
 which^4.17.0.3out of date
 version-sync^0.90.9.5up to date
 static_assertions^1.11.1.0up to date

Crate heim-virt

Dependencies

(3 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 cfg-if^1.01.0.0up to date
 futures^0.30.3.31up to date
 raw-cpuid ⚠️^9.011.5.0out of date

Dev dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 smol^1.22.0.2out of date
 tempfile^3.03.20.0up to date
 version-sync^0.90.9.5up to date

Crate heim-sensors

Dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 cfg-if^1.01.0.0up to date

Dev dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 smol^1.22.0.2out of date
 version-sync^0.90.9.5up to date

Crate benchmarks

Dependencies

(3 total, 2 outdated)

CrateRequiredLatestStatus
 futures^0.30.3.31up to date
 criterion^0.30.6.0out of date
 smol^1.22.0.2out of date

Crate examples

Dev dependencies

(9 total, 4 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 cfg-if^1.01.0.0up to date
 futures-timer^3.03.0.3up to date
 futures^0.30.3.31up to date
 smol^1.22.0.2out of date
 tokio ⚠️^0.31.45.0out of date
 async-std^1.71.13.1up to date
 ptree^0.30.5.2out of date
 prettytable-rs^0.8.00.10.0out of date
 humantime^2.0.02.2.0up to date

Security Vulnerabilities

tokio: Task dropped in wrong thread when aborting `LocalSet` task

RUSTSEC-2021-0072

When aborting a task with JoinHandle::abort, the future is dropped in the thread calling abort if the task is not currently being executed. This is incorrect for tasks spawned on a LocalSet.

This can easily result in race conditions as many projects use Rc or RefCell in their Tokio tasks for better performance.

See tokio#3929 for more details.

raw-cpuid: Optional `Deserialize` implementations lacking validation

RUSTSEC-2021-0089

When activating the non-default feature serialize, most structs implement serde::Deserialize without sufficient validation. This allows breaking invariants in safe code, leading to:

  • Undefined behavior in as_string() methods (which use std::str::from_utf8_unchecked() internally).
  • Panics due to failed assertions.

See https://github.com/gz/rust-cpuid/issues/43.

nix: Out-of-bounds write in nix::unistd::getgrouplist

RUSTSEC-2021-0119

On certain platforms, if a user has more than 16 groups, the nix::unistd::getgrouplist function will call the libc getgrouplist function with a length parameter greater than the size of the buffer it provides, resulting in an out-of-bounds write and memory corruption.

The libc getgrouplist function takes an in/out parameter ngroups specifying the size of the group buffer. When the buffer is too small to hold all of the requested user's group memberships, some libc implementations, including glibc and Solaris libc, will modify ngroups to indicate the actual number of groups for the user, in addition to returning an error. The version of nix::unistd::getgrouplist in nix 0.16.0 and up will resize the buffer to twice its size, but will not read or modify the ngroups variable. Thus, if the user has more than twice as many groups as the initial buffer size of 8, the next call to getgrouplist will then write past the end of the buffer.

The issue would require editing /etc/groups to exploit, which is usually only editable by the root user.

tokio: Data race when sending and receiving after closing a `oneshot` channel

RUSTSEC-2021-0124

If a tokio::sync::oneshot channel is closed (via the oneshot::Receiver::close method), a data race may occur if the oneshot::Sender::send method is called while the corresponding oneshot::Receiver is awaited or calling try_recv.

When these methods are called concurrently on a closed channel, the two halves of the channel can concurrently access a shared memory location, resulting in a data race. This has been observed to cause memory corruption.

Note that the race only occurs when both halves of the channel are used after the Receiver half has called close. Code where close is not used, or where the Receiver is not awaited and try_recv is not called after calling close, is not affected.

See tokio#4225 for more details.