Rust advisories / outer_cgi
Vulnerability CriticalRUSTSEC-2021-0051 · outer_cgi
RUSTSEC-2021-0051: KeyValueReader passes uninitialized memory to Read instance
Short answerA security vulnerability in the outer_cgi crate: KeyValueReader passes uninitialized memory to Read instance. Critical severity (CVSS 9.8). Fixed in 0.2.1: update to a fixed version.
| Crate | outer_cgi |
|---|---|
| Type | Vulnerability (memory-exposure) |
| Affected versions | Before 0.2.1. |
| Fixed in | 0.2.1 |
| 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 | 2021-01-31 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2021-30454, GHSA-6vmq-jh76-hq43 |
What to do
- See which version you have:
cargo tree -i outer_cgi(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p outer_cgi. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampleouter_cgi = "0.2.1") 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
The KeyValueReader type in affected versions of this crate set up an uninitialized memory buffer and passed them to be read in to a user-provided Read instance.
The Read instance could read uninitialized memory and cause undefined behavior and miscompilations.
This issue was fixed in commit dd59b30 by zero-initializing the buffers before passing them.
References
- Package: crates.io/crates/outer_cgi
- Advisory: rustsec.org/advisories/RUSTSEC-2021-0051.html
- Report: github.com/SolraBizna/outer_cgi/issues/1
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?