Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft W64 WAV with oversized sizeInBytes and large cuePointCount
-
DeliveryDeliver crafted file to 32-bit target application
-
ExploitUser or pipeline opens file triggering metadata parsing
-
Executionsize_t truncation under-allocates CUE metadata heap buffer
-
PersistStage-2 writes attacker-controlled cue point count past buffer boundary
-
ImpactHeap corruption enables arbitrary code execution in application context
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all four of the following conditions to be met simultaneously: (1) The target application must be compiled as a 32-bit binary - on 64-bit builds, size_t is 8 bytes and the truncation of the 64-bit sizeInBytes field does not occur, making the code path safe. (2) The application must parse W64-format WAV files that include CUE chunk metadata; standard PCM WAV files or W64 files without CUE chunks do not trigger the vulnerable path. (3) The application must be compiled with -DNDEBUG (the standard release build flag), which disables DRWAV_ASSERT and eliminates the only runtime bounds check, allowing the overflow to proceed silently. (4) A user or automated pipeline must open the attacker-supplied crafted file, consistent with UI:R in the CVSS vector. Exploitation is explicitly NOT possible on 64-bit builds, NOT possible if CUE metadata parsing is disabled or the input file contains no CUE chunk, and NOT silent on debug builds where DRWAV_ASSERT is compiled in. No authentication or network-level access is required beyond file delivery. |
| Impact | CVSS 7.8 with vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H accurately captures the high potential impact tempered by the local file-based delivery requirement. The AV:L and UI:R constraints are directly consistent with the description: a user or automated pipeline must open a crafted W64 WAV file. PR:N is appropriate because no authentication beyond file delivery is required. The critical architectural constraint - 32-bit builds only - significantly narrows the realistic attack surface compared to the raw CVSS score implies; modern servers and desktops are predominantly 64-bit. However, embedded systems, legacy game engines, certain mobile SDKs, and cross-platform audio middleware compiled for 32-bit targets remain genuinely exposed. The -DNDEBUG condition, rather than narrowing exposure, broadens it: release builds (the default) silently disable the only runtime check, meaning the overflow proceeds without any abort or error in the most widely deployed build configuration. No EPSS data was provided; given the absence of a KEV listing and no public POC, opportunistic mass exploitation is unlikely, but the technical description is precise enough that targeted exploit construction is tractable for a motivated researcher. This is a genuine risk for any 32-bit application embedding dr_wav.h to process user-supplied audio. |
| Exploit ScenarioDerived | An attacker crafts a W64 WAV file with a CUE chunk whose sizeInBytes field is set to a value exceeding 2^32 (e.g., 0x1_0000_0010), embedding a large cuePointCount in the chunk body. When a victim 32-bit application - such as a game engine, DAW, or audio editor compiled with -DNDEBUG - opens the file, the stage-1 truncation causes the heap region to be under-allocated by gigabytes in logical space, then stage-2 writes cue point structures beyond the allocated boundary, corrupting adjacent heap metadata or application data. No public POC has been identified, but the two-stage mismatch is described with sufficient precision that an experienced researcher could construct a working exploit against a specific 32-bit target. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Heap buffer overflow in dr_libs dr_wav.h enables arbitrary code execution in 32-bit applications that parse untrusted W64 WAV files containing CUE chunk metadata. The flaw stems from a two-stage allocation mismatch: stage-1 capacity estimation silently truncates a 64-bit W64 chunk size to 32-bit size_t, under-allocating heap space, while stage-2 writes using the full attacker-controlled cuePointCount field without validating against that flawed estimate. The sole runtime guard (DRWAV_ASSERT) is compiled out under -DNDEBUG, the default for release builds, making exploitation silent in production. No active exploitation is confirmed (not in CISA KEV) and no public exploit code has been identified at time of analysis.
RemediationAI
No vendor-released patch has been identified at time of analysis; the references point only to the upstream source repository without a tagged fix commit or release. Developers embedding dr_wav.h should apply specific source-level mitigations immediately: (1) Insert an explicit cast-and-validate guard in drwav__metadata_process_chunk() that confirms sizeInBytes does not exceed SIZE_MAX before truncating to size_t, and abort or return an error if it does - this eliminates the under-allocation at the root. (2) In drwav__read_cue_to_metadata_obj(), cross-check the parsed cuePointCount against the stage-1 capacity estimate before computing the stage-2 allocation, refusing to proceed if they are inconsistent. (3) Replace or supplement DRWAV_ASSERT with an explicit conditional abort that is not stripped by -DNDEBUG, such as a runtime bounds check that returns DRWAV_FALSE on overflow. As a deployment-level control, applications that do not use CUE point metadata can stub or disable that parsing path entirely with no functional cost. Any 32-bit build target processing untrusted WAV input should be considered high priority for these fixes. Monitor https://github.com/mackron/dr_libs for an upstream patch commit.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
dr_libs is a collection of single-header C audio decoding libraries authored by mackron; dr_wav.h handles both conventional WAV and W64 (Sony Wave 64) format files. W64 extends WAV by using 64-bit chunk size fields to support files larger than 4 GB. The vulnerability (CWE-190: Integer Overflow or Wraparound) lives in the W64 CUE chunk metadata parsing path across two functions. In drwav__metadata_process_chunk(), the library performs a stage-1 capacity pre-estimation by casting the 64-bit sizeInBytes field to size_t and dividing by DRWAV_CUE_POINT_BYTES; on 32-bit platforms where size_t is 4 bytes, the upper 32 bits of sizeInBytes are silently discarded before division, producing a capacity estimate that is far smaller than the actual chunk data warrants. In drwav__read_cue_to_metadata_obj(), the library then reads cuePointCount directly from the file - a fully attacker-controlled field - and derives the actual memory allocation from it without cross-checking against the stage-1 estimate. The function drwav__metadata_get_memory() enforces bounds only via DRWAV_ASSERT, which the C preprocessor strips entirely when -DNDEBUG is defined, as is standard in production release builds. The result is a classic heap buffer overflow driven by the divergence between a corrupted capacity estimate and an attacker-supplied object count. All versions are affected per CPE cpe:2.3:a:mackron:dr_libs:*:*:*:*:*:*:*:*.
Know when Dr Libs gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
File-based delivery requires local access and user interaction; no privileges needed; heap overflow yields full CIA impact within application scope.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
DescriptionCVE.org
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 stage-1 capacity estimate truncates the 64-bit W64 chunk sizeInBytes to size_t before dividing by DRWAV_CUE_POINT_BYTES; on 32-bit builds this truncation causes the pre-allocated extra metadata capacity to be computed incorrectly. The subsequent read in drwav__read_cue_to_metadata_obj() computes the actual cue point count and allocation size using the full-precision, attacker-controlled cuePointCount field without cross-checking it against the stage-1 capacity estimate, and the only bounds enforcement on the resulting memory region (drwav__metadata_get_memory()) is a DRWAV_ASSERT, which compiles to a no-op under -DNDEBUG (the default for release builds). A crafted W64 WAV file can therefore cause a heap buffer overflow in any 32-bit application parsing untrusted WAV metadata.
Executive ViewAI
A heap buffer overflow in the dr_libs WAV file parsing library (CVE-2026-71261) affects 32-bit applications processing untrusted audio files, enabling arbitrary code execution through maliciously crafted file metadata. Organizations operating systems that accept WAV files from external sources face elevated operational risk, particularly if those systems depend on affected library versions in memory-constrained 32-bit environments. Immediate identification of affected systems and implementation of interim protective measures are required.
No vendor-released patch identified at time of analysis. Interim mitigations include disabling untrusted WAV file parsing, implementing strict validation of W64 chunk sizes, running affected applications in sandboxed or isolated execution environments, upgrading 32-bit applications to 64-bit versions, and replacing dr_libs with alternative parsing libraries containing input validation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Heap buffer overflow in dr_libs 0.14.4 and earlier allows attackers to corrupt memory by supplying maliciously crafted W
An out-of-bounds write in dr_wav, the WAV decoder in the dr_libs single-header audio library set (version 0.14.5), is re
Denial of service in dr_libs 0.13.3 and earlier enables local attackers with user privileges to exhaust system memory by
An out-of-bounds read in the dr_mp3 decoder of dr_libs 0.7.3 (drmp3_init_internal) is triggered when a crafted .mp3 file
EUVD-2026-53346
GHSA-cfw7-vmp5-wg69
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB