Rust advisories / safemem
UnmaintainedRUSTSEC-2023-0081 · safemem
RUSTSEC-2023-0081: safemem is unmaintained
Short answerNot a bug report: safemem is no longer maintained, so future security issues will not be fixed. Plan to move to a maintained alternative.
| Crate | safemem |
|---|---|
| Type | Unmaintained |
| Affected versions | Every version. |
| Fixed in | not applicable (the crate is unmaintained) |
| Severity | not scored |
| Published | 2023-02-14 |
| Last changed | 2024-03-04 |
| Also known as | none |
What to do
- Look for a maintained fork or alternative crate.
- If you cannot move yet, acknowledge it in your audit config so CI stays green while you plan: add
"RUSTSEC-2023-0081"toignorein.cargo/audit.tomlordeny.toml, with a comment saying why. - Find who pulls it in:
cargo tree -i safemem.
Details from the advisory
The latest crates.io release was in 2019. The repository has been archived by the author.
Migration
safemem::copy_over(slice, src_idx, dest_idx, len);can be replaced withslice.copy_within(src_idx..src_idx+len, dest_idx);as ofrust 1.37.0.safemem::write_bytes(slice, byte);can be replaced withslice.fill(byte);as ofrust 1.50.0safemem::prepend(slice, vec);can be replaced with
``rust let old_len = vec.len(); vec.extend_from_slice(slice); vec.rotate_left(old_len); ``
as of rust 1.26.0
References
- Package: crates.io/crates/safemem
- Advisory: rustsec.org/advisories/RUSTSEC-2023-0081.html
- Web: github.com/abonander/safemem
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?