whoami
Affected
- introduced
0.5.3, fixed1.5.0(semver)
Fixed versions
1.5.0
Fix
- Fixed version
1.5.0cargo update -p whoami --precise 1.5.0
Advisory
Also known as: GHSA-w5w5-8vfh-xcjq
Stack buffer overflow with whoami on several Unix platforms
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::usernamewhoami::realnamewhoami::username_oswhoami::realname_osWith 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:
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.
Not rated by the source.
0.5.3, fixed 1.5.0 (semver)1.5.0
1.5.0cargo update -p whoami --precise 1.5.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0