Description
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.
References (4)
Core 4
Core References
Third Party Advisory technical-description
exploit
https://github.com/marlinkcyber/advisories/blob/main/advisories/MCSAID-2026-001-dr-libs-heap-overflow.md
Issue Tracking issue-tracking
https://github.com/mackron/dr_libs/issues/296
Third Party Advisory third-party-advisory
https://www.vulncheck.com/advisories/mackron-dr-libs-heap-buffer-overflow-via-wav-file
Scores
CVSS v3
7.3
EPSS
0.0021
EPSS Percentile
10.7%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-122
CWE-787
Status
published
Products (4)
mackron/dr_libs
< 0.14.4
mackron/dr_libs dr_wav.h
< 0.14.4
mackron/dr_libs dr_wav.h
8a7258cc66b49387ad58cc5b81568982a3560d49
mackron/dr_libs dr_wav.h
commit 8a7258c
Published
Mar 03, 2026
Tracked Since
Mar 04, 2026