This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate mango

Dependencies

(13 total, 4 outdated, 1 insecure, 1 possibly insecure)

CrateRequiredLatestStatus
 serde^1.01.0.219up to date
 bincode^1.32.0.1out of date
 serde_json^1.01.0.140up to date
 dirs^3.06.0.0out of date
 whoami ⚠️^1.11.5.2maybe insecure
 structopt^0.30.3.26up to date
 lazy_static^1.41.5.0up to date
 ws ⚠️^0.90.9.2insecure
 log^0.40.4.26up to date
 async-std^1.91.13.1up to date
 env_logger^0.80.11.7out of date
 paw^1.01.0.0up to date
 include_dir^0.60.7.4out of date

Dev dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 serial_test^0.53.2.0out of date
 tempfile^3.23.19.1up to date

Security Vulnerabilities

ws: Insufficient size checks in outgoing buffer in ws allows remote attacker to run the process out of memory

RUSTSEC-2020-0043

Affected versions of this crate did not properly check and cap the growth of the outgoing buffer.

This allows a remote attacker to take down the process by growing the buffer of their (single) connection until the process runs out of memory it can allocate and is killed.

The flaw was corrected in the parity-ws fork (>=0.10.0) by disconnecting a client when the buffer runs full.

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.