Rust advisories / alpm-rs
Unsound CriticalRUSTSEC-2020-0032 · alpm-rs
RUSTSEC-2020-0032: StrcCtx deallocates a memory region that it doesn't own
Short answeralpm-rs has an API that can cause undefined behaviour from safe code: StrcCtx deallocates a memory region that it doesn't own. No fixed version yet.
| Crate | alpm-rs |
|---|---|
| Type | Unsound |
| Affected versions | Every version. |
| Fixed in | none |
| Severity | Critical, CVSS 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2020-08-20 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2020-35885, GHSA-qc4m-gc8r-mg8m |
What to do
- Find who pulls it in:
cargo tree -i alpm-rs. - Avoid the affected API, or replace the crate.
Details from the advisory
StrcCtx deallocate a memory region that it doesn't own when StrcCtx is created without using StrcCtx::new. This can introduce memory safety issues such as double-free and use-after-free to client programs.
References
- Package: crates.io/crates/alpm-rs
- Advisory: rustsec.org/advisories/RUSTSEC-2020-0032.html
- Report: github.com/pigeonhands/rust-arch/issues/2
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?