Read the docs
TI-2024-38553 Aliases GHSA-w5w5-8vfh-xcjq

whoami stack buffer overflow on several Unix platforms

Priority LOW 38CWE-121Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

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](https://github.com/ardaku/whoami/issues/91).

Why it matters now

Fix Fixed whoami (crates.io): 1.5.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—whoami (crates.io)0.5.3 to before 1.5.01.5.0Patch availableGHSA-w5w5-8vfh-xcjq
  • whoami (crates.io) Vendor— Affected 0.5.3 to before 1.5.0 Fixed in 1.5.0 Patch available GHSA-w5w5-8vfh-xcjq

Remediation

  • Fix · GHSA-w5w5-8vfh-xcjq whoami (crates.io) Fixed in 1.5.0 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-w5w5-8vfh-xcjq

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences