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 spotifyd

Dependencies

(36 total, 2 possibly insecure)

CrateRequiredLatestStatus
 alsa^0.9.10.9.1up to date
 chrono ⚠️^0.40.4.41maybe insecure
 dbus^0.90.9.7up to date
 dbus-tokio^0.7.30.7.6up to date
 dbus-crossroads^0.5.00.5.2up to date
 fern^0.7.00.7.1up to date
 futures^0.3.150.3.31up to date
 gethostname^1.0.01.0.2up to date
 hex^0.40.4.3up to date
 libc^0.2.820.2.174up to date
 log^0.4.60.4.27up to date
 serde^1.0.1151.0.219up to date
 sha-1^0.100.10.1up to date
 tokio^1.26.01.46.1up to date
 tokio-stream^0.1.70.1.17up to date
 url^2.2.22.5.4up to date
 librespot-audio^0.60.6.0up to date
 librespot-playback^0.60.6.0up to date
 librespot-core^0.60.6.0up to date
 librespot-discovery^0.60.6.0up to date
 librespot-connect^0.60.6.0up to date
 librespot-metadata^0.60.6.0up to date
 librespot-protocol^0.60.6.0up to date
 librespot-oauth^0.60.6.0up to date
 toml^0.8.190.8.23up to date
 color-eyre^0.60.6.5up to date
 directories^6.0.06.0.0up to date
 thiserror^2.02.0.12up to date
 time^0.3.370.3.41up to date
 clap^4.5.234.5.40up to date
 serde_ignored^0.1.100.1.12up to date
 daemonize^0.50.5.0up to date
 syslog^77.0.0up to date
 whoami ⚠️^11.6.0maybe insecure
 pledge^0.4.20.4.2up to date
 aws-lc-rs^1.12.61.13.1up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 env_logger^0.110.11.8up to date

Security Vulnerabilities

chrono: Potential segfault in `localtime_r` invocations

RUSTSEC-2020-0159

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.

Workarounds

No workarounds are known.

References

whoami: Stack buffer overflow with whoami on several Unix platforms

RUSTSEC-2024-0020

With versions of the whoami crate >= 0.5.3 and < 1.5.0, calling any of these functions leads to an immediate stack buffer overflow on illumos and Solaris:

  • whoami::username
  • whoami::realname
  • whoami::username_os
  • whoami::realname_os

With versions of the whoami crate >= 0.5.3 and < 1.0.1, calling any of the above functions also leads to a stack buffer overflow on these platforms:

  • Bitrig
  • DragonFlyBSD
  • FreeBSD
  • NetBSD
  • OpenBSD

This occurs because of an incorrect definition of the passwd struct on those platforms.

As a result of this issue, denial of service and data corruption have both been observed in the wild. The issue is possibly exploitable as well.

This vulnerability also affects other Unix platforms that aren't Linux or macOS.

This issue has been addressed in whoami 1.5.0.

For more information, see this GitHub issue.