Unsound MediumRUSTSEC-2023-0059 · users
RUSTSEC-2023-0059: Unaligned read of `*const *const c_char` pointer
Short answerusers has an API that can cause undefined behaviour from safe code: Unaligned read of `*const *const c_char` pointer. No fixed version yet.
| Crate | users |
|---|---|
| Type | Unsound |
| Affected versions | Every version. |
| Fixed in | none |
| Severity | Medium (GitHub rating) |
| Published | 2023-09-10 |
| Last changed | 2024-02-10 |
| Also known as | GHSA-jcr6-4frq-9gjj |
What to do
- Find who pulls it in:
cargo tree -i users. - Avoid the affected API, or replace the crate.
Details from the advisory
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
References
- Package: crates.io/crates/users
- Advisory: rustsec.org/advisories/RUSTSEC-2023-0059.html
- Report: github.com/ogham/rust-users/issues/55
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for users
Up next
Same crateusers: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?