Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. claxon
  4. ›
  5. CVE-2018-20992

CVE-2018-20992: Uninitialized memory exposure in claxon

August 25, 2021 (updated June 13, 2023)

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

  • github.com/advisories/GHSA-8c6g-4xc5-w96c
  • github.com/ruuda/claxon
  • github.com/ruuda/claxon/commit/8f28ec275e412dd3af4f3cda460605512faf332c
  • github.com/ruuda/claxon/releases/tag/v0.3.2
  • github.com/ruuda/claxon/releases/tag/v0.4.1
  • nvd.nist.gov/vuln/detail/CVE-2018-20992
  • rustsec.org/advisories/RUSTSEC-2018-0004.html

Code Behaviors & Features

Detect and mitigate CVE-2018-20992 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.3.2, all versions starting from 0.4.0 before 0.4.1

Fixed versions

  • 0.4.1
  • 0.3.2

Solution

Upgrade to versions 0.3.2, 0.4.1 or above.

Impact 6.5 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-908: Use of Uninitialized Resource

Source file

cargo/claxon/CVE-2018-20992.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:00 +0000.