Email me

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.

Crateclaxon
TypeVulnerability
Affected versionsBefore 0.3.2; from 0.4.0 before 0.4.1.
Fixed in0.3.2, 0.4.1
SeverityMedium, CVSS 6.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Published2018-08-25
Last changed2023-11-08
Also known asCVE-2018-20992, GHSA-8c6g-4xc5-w96c

What to do

  1. See which version you have: cargo tree -i claxon (it also shows which of your dependencies pulls it in).
  2. 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 example claxon = "0.4.1") or update the dependency that pulls it in.
  3. 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

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 →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ