Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUSTSEC-2024-0020: Stack buffer overflow with whoami on several Unix platforms #28

Closed
github-actions bot opened this issue Mar 5, 2024 · 0 comments

Comments

@github-actions
Copy link

github-actions bot commented Mar 5, 2024

Details
Package whoami
Version 1.4.1
URL ardaku/whoami#91
Patched Versions >=1.5.0
Unaffected Versions <0.5.3

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.

@github-actions github-actions bot changed the title RUSTSEC-2024-0020: Stack buffer overflow with whoami on illumos and Solaris RUSTSEC-2024-0020: Stack buffer overflow with whoami on several Unix platforms Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants