


Perceptive Security
SOC/SIEM Consultancy

dr_libs dr_wav.h (all versions through current master) contains an integer overflow in W64 CUE chunk metadata parsing. In drwav__metadata_process_chunk(), a sta…
Published:
4 August 2026 at 22:00:00
Alert date:
5 August 2026 at 14:10:56
Source:
nvd.nist.gov
Supply Chain & Dependencies, Zero-Day Vulnerabilities
CVE-2026-71261 describes an integer overflow vulnerability in the dr_libs dr_wav.h library affecting all versions through the current master branch. The flaw exists in W64 CUE chunk metadata parsing within drwav__metadata_process_chunk(), where a 64-bit chunk size is truncated to size_t on 32-bit builds, causing incorrect pre-allocated metadata capacity calculations. The subsequent read in drwav__read_cue_to_metadata_obj() uses an attacker-controlled cuePointCount field without validating it against the stage-1 capacity estimate. The only bounds check present is a DRWAV_ASSERT macro that compiles to a no-op in release builds compiled with -DNDEBUG. This combination allows a crafted W64 WAV file to trigger a heap buffer overflow in any 32-bit application that parses untrusted WAV metadata using this library. The vulnerability poses a significant risk given the wide embedding of dr_libs in audio-processing software.
Technical details
Mitigation steps:
Affected products:
dr_libs dr_wav.h (all versions through current master)
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-71261
https://github.com/mackron/dr_libs
https://github.com/mackron/dr_libs/blob/master/dr_wav.h
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
