Rust advisories / claxon
Vulnerability MediumRUSTSEC-2018-0004 · claxon
RUSTSEC-2018-0004: Malicious input could cause uninitialized memory to be exposed
Short answerA security vulnerability in the claxon crate: Malicious input could cause uninitialized memory to be exposed. Medium severity (CVSS 6.5). Fixed in 0.3.2, 0.4.1: update to a fixed version.
| Crate | claxon |
|---|---|
| Type | Vulnerability |
| Affected versions | Before 0.3.2; from 0.4.0 before 0.4.1. |
| Fixed in | 0.3.2, 0.4.1 |
| Severity | Medium, CVSS 6.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| Published | 2018-08-25 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2018-20992, GHSA-8c6g-4xc5-w96c |
What to do
- See which version you have:
cargo tree -i claxon(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p claxon. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampleclaxon = "0.4.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
Affected versions of Claxon made an invalid assumption about the decode buffer size being a multiple of a value read from the bitstream. This could cause parts of the decode buffer to not be overwritten. If the decode buffer was newly allocated and uninitialized, this uninitialized memory could be exposed.
This allows an attacker to observe parts of the uninitialized memory in the decoded audio stream.
The flaw was corrected by checking that the value read from the bitstream divides the decode buffer size, and returning a format error if it does not. If an error is returned, the decode buffer is not exposed. Regression tests and an additional fuzzer have been added to prevent similar flaws in the future.
References
- Package: crates.io/crates/claxon
- Advisory: rustsec.org/advisories/RUSTSEC-2018-0004.html
- Web: github.com/ruuda/claxon/commit/8f28ec275e412dd3af4f3cda460605512faf332c
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?