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 asfa

Dependencies

(22 total, 5 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.0.751.0.81up to date
 base64^0.13.10.22.0out of date
 chrono^0.4.310.4.37up to date
 clap^3.2.254.5.4out of date
 console^0.15.70.15.8up to date
 dialoguer^0.10.40.11.0out of date
 expanduser^1.2.21.2.2up to date
 hex^0.4.30.4.3up to date
 humantime^2.1.02.1.0up to date
 indicatif^0.17.70.17.8up to date
 itertools^0.10.50.12.1out of date
 lazy_static^1.4.01.4.0up to date
 log^0.4.200.4.21up to date
 percent-encoding^2.3.02.3.1up to date
 regex^1.10.21.10.4up to date
 rpassword^7.3.17.3.1up to date
 sha2^0.10.80.10.8up to date
 simple_logger^2.3.04.3.3out of date
 ssh2^0.9.40.9.4up to date
 thiserror^1.0.501.0.58up to date
 whoami ⚠️^1.4.11.5.1maybe insecure
 yaml-rust^0.4.50.4.5up to date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 cmd_lib_core^0.4.00.4.0up to date
 rand^0.8.50.8.5up to date

Security Vulnerabilities

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.