mackron / dr_libs dr_wav.h Heap Buffer Overflow via WAV File
CVE-2026-29022Published 3 Mar 2026, 19:49 UTC
Real-world risk
2.3/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.8
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from VulnCheck)
dr_libs dr_wav.h version 0.14.4 and earlier (fixed in commit 8a7258c) contain a heap buffer overflow vulnerability in the drwav__read_smpl_to_metadata_obj() function of dr_wav.h that allows memory corruption via crafted WAV files. Attackers can exploit a mismatch between sampleLoopCount validation in pass 1 and unconditional processing in pass 2 to overflow heap allocations with 36 bytes of attacker-controlled data through any drwav_init_*_with_metadata() call on untrusted input.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| dr_libsNiche | <= 0.14.4 | — |
What to do
Check the vendor advisory in the references below for fixed versions and workarounds.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data tamperingWrites or changes important data without gaining execution | From the CVSS vector | 0.70 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Reference tagged as exploit (link)
EPSS 0.2% chance of exploitation in 30 days (percentile 12), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.350
- Threat T3: Public proof of concept0.950
- 10 × impact 0.7 × prerequisites 0.35 × threat 0.952.327
- Rounded to one decimal between 0.1 and 102.3
Exploitation and evidence timeline
- 3 Mar 2026 Published
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 Risk 2.3 (cvss fallback)
Weakness
CWE-122
References
- https://github.com/marlinkcyber/advisories/blob/main/advisories/MCSAID-2026-001-dr-libs-heap-overflow.mdexploit, technical-description
- https://github.com/mackron/dr_libs/issues/296issue-tracking
- https://github.com/mackron/dr_libs/commit/8a7258cc66b49387ad58cc5b81568982a3560d49patch
- https://www.vulncheck.com/advisories/mackron-dr-libs-heap-buffer-overflow-via-wav-filethird-party-advisory
- CVE-2026-29022 on CVE.org