CVE-2026-29022

mackron / dr_libs dr_wav.h Heap Buffer Overflow via WAV File

State
Published
Severity
6.8 Medium
Published
Mar 3, 2026
Updated
Jul 28, 2026
Reserved
Mar 3, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.8 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck
3.17.3 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:HVulnCheck

Weaknesses

Affected Products

ProductVersions
dr_libs dr_wav.hmackron
  • 0.14.4 and earlierAffected
  • 8a7258cc66b49387ad58cc5b81568982a3560d49Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.