# CVE-2026-29022: mackron / dr_libs dr_wav.h Heap Buffer Overflow via WAV File

- Severity: Medium 6.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-03-03T19:49:16.581Z
- Modified: 2026-07-28T01:48:30.401Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- mackron dr_libs dr_wav.h: up to 0.14.4 (not affected: 8a7258cc66b49387ad58cc5b81568982a3560d49)
- mackron dr_libs: up to 0.14.4

## Every score

- VulnCheck: CVSS:4.0 6.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/marlinkcyber/advisories/blob/main/advisories/MCSAID-2026-001-dr-libs-heap-overflow.md> (exploit, technical-description, third-party-advisory)
- <https://github.com/mackron/dr_libs/issues/296> (exploit, issue-tracking, patch, third-party-advisory)
- <https://github.com/mackron/dr_libs/commit/8a7258cc66b49387ad58cc5b81568982a3560d49> (patch)
- <https://www.vulncheck.com/advisories/mackron-dr-libs-heap-buffer-overflow-via-wav-file> (third-party-advisory, vdb-entry)

## Sources

- CVE List: [CVE-2026-29022](https://www.cve.org/CVERecord?id=CVE-2026-29022), CVE Terms of Use, modified 2026-07-28
- NVD: [CVE-2026-29022](https://nvd.nist.gov/vuln/detail/CVE-2026-29022), Public domain, modified 2026-07-14

---

Page: https://cve.day/CVE-2026-29022 · Whole record: https://cve.day/CVE-2026-29022.json · Rebuilt by cve.day 2026-11-25T22:59:15.133Z
