Rust advisories / obstack
Unsound HighRUSTSEC-2020-0040 · obstack
RUSTSEC-2020-0040: Obstack generates unaligned references
Short answerobstack has an API that can cause undefined behaviour from safe code: Obstack generates unaligned references. Fixed in 0.1.4.
| Crate | obstack |
|---|---|
| Type | Unsound |
| Affected versions | Before 0.1.4. |
| Fixed in | 0.1.4 |
| Severity | High, CVSS 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Published | 2020-09-03 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2020-35894, GHSA-85j6-f8j6-q26x |
What to do
- See which version you have:
cargo tree -i obstack(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p obstack. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampleobstack = "0.1.4") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
Obstack generates unaligned references for types that require a large alignment.
References
- Package: crates.io/crates/obstack
- Advisory: rustsec.org/advisories/RUSTSEC-2020-0040.html
- Report: github.com/petertodd/rust-obstack/issues/4
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?