Skip to content

Users vulnerable to unaligned read of `*const *const c_char` pointer

Moderate severity GitHub Reviewed Published Sep 11, 2023 to the GitHub Advisory Database • Updated Sep 13, 2023

Package

cargo users (Rust)

Affected versions

<= 0.11.0

Patched versions

None

Description

Affected versions dereference a potentially unaligned pointer. The pointer is commonly unaligned in practice, resulting in undefined behavior.

In some build modes, this is observable as a panic followed by abort. In other build modes the UB may manifest in some other way, including the possibility of working correctly in some architectures.

The crate is not currently maintained, so a patched version is not available.

Recommended alternatives

  • uzers (an actively maintained fork of the users crate)
  • sysinfo

References

Published to the GitHub Advisory Database Sep 11, 2023
Reviewed Sep 11, 2023
Last updated Sep 13, 2023

Severity

Moderate

Weaknesses

No CWEs

CVE ID

No known CVE

GHSA ID

GHSA-jcr6-4frq-9gjj

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.