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.
Security readout for executives and security teams
Plain-English summary
A crafted WAV file can corrupt memory in software embedding dr_wav.h 0.14.4 or earlier when metadata-enabled initialization processes the file. This may cause crashes or compromise application integrity. The supplied evidence does not establish code execution or attacks in the wild.
Executive priority
Treat as a high-priority update for systems processing externally supplied WAV files. Accelerate remediation for exposed upload or automated media-processing services. Other deployments should inventory usage promptly and patch through normal urgent-change procedures.
Technical view
drwav__read_smpl_to_metadata_obj() validates sampleLoopCount differently across two parsing passes. The second pass processes loop records unconditionally, allowing 36 bytes of attacker-controlled data to overflow the heap allocation through drwav_init_*_with_metadata() calls. Commit 8a7258c fixes the flaw.
Likely exposure
Exposure exists where applications embed an affected dr_wav.h version and pass untrusted WAV data to metadata-enabled initialization functions. File-upload, media-processing, or content-analysis workflows warrant review, but the bundle does not identify specific downstream products.
Exploitation context
Exploitation requires a victim application to process a crafted WAV file, with user interaction reflected in the CVSS rating. CISA KEV status is false, and the supplied sources do not confirm active exploitation. Public technical details increase the importance of timely remediation.
Researcher notes
The reported primitive is a CWE-122 heap buffer overflow caused by inconsistent two-pass sampleLoopCount handling. CVSS 3.1 is 7.3 with low confidentiality impact and high integrity and availability impact. The bundle supports memory corruption but not reliable code execution or active exploitation.
Mitigation direction
Update to commit 8a7258cc66b49387ad58cc5b81568982a3560d49 or a release incorporating that fix.
Inventory applications and dependencies containing dr_wav.h 0.14.4 or earlier.
Until updated, prevent untrusted WAV files from reaching metadata-enabled initialization paths.
Check upstream and downstream vendor guidance for packaged products embedding dr_libs.
Validation and detection
Confirm the embedded dr_wav.h revision includes commit 8a7258cc66b49387ad58cc5b81568982a3560d49.
Search code paths for drwav_init_*_with_metadata() calls handling externally supplied data.
Run existing memory-safety and malformed-input tests against WAV metadata parsing after updating.
Verify deployed artifacts, not only source repositories, contain the corrected header.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-122: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-122 · source CWE mapping
Heap-based Buffer Overflow
Heap-based Buffer Overflow represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.