Description
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.
Published: 2026-08-05
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability occurs when the library parses the 64‑bit W64 CUE chunk metadata declared in WAV files. During the initial capacity calculation, the 64‑bit sizeInBytes value is truncated to a 32‑bit size_t before being divided by the fixed cue‑point byte size. On 32‑bit builds this truncation causes the estimated capacity for the extra metadata to be smaller than the actual amount needed. When the buffer is later allocated and the library writes the cue points without re‑checking the size, a heap buffer overflow can occur. The overflow can potentially allow an attacker to execute arbitrary code in the context of the application that uses the library. The flaw is limited to 32‑bit builds and requires the application to parse an externally provided WAV file.

Affected Systems

Vendor Mackron’s dr_libs library, specifically the dr_wav.h component. All current versions up through the master branch are affected on 32‑bit architectures. Applications that link to this library and accept external WAV files are at risk.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity. With an EPSS of < 1%, the exploitation probability is low, but the vulnerability has not been listed in CISA KEV. Attackers could deliver a malicious WAV file to any 32‑bit application using the library, exploiting the overflow during normal metadata parsing. The exploit requires local or remote access to a file that the application processes, so it is likely to target user‑downloaded or network‑received audio files.

Generated by OpenCVE AI on August 10, 2026 at 21:44 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest release of dr_libs that contains the fixed capacity calculation in drwav__metadata_process_chunk().
  • If a patch cannot be applied, rebuild dr_libs (or the application that uses it) for a 64‑bit architecture, as the overflow only manifests on 32‑bit builds.
  • Restrict parsing of untrusted WAV files to a sandboxed or low‑privilege process, limiting the potential damage if the overflow is triggered.

Generated by OpenCVE AI on August 10, 2026 at 21:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 12:00:00 +0000

Type Values Removed Values Added
Description 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. 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.
Title dr_wav.h - W64 CUE Chunk Metadata Parsing Integer Overflow Leading to Heap Buffer Overflow on 32-bit Builds dr_wav.h W64 CUE Chunk Metadata Parsing Integer Overflow Leading to Heap Buffer Overflow on 32-bit Builds

Mon, 10 Aug 2026 11:45:00 +0000

Type Values Removed Values Added
Title dr_wav.h W64 CUE Chunk Metadata Parsing Integer Overflow Leading to Heap Buffer Overflow on 32-bit Builds dr_wav.h - W64 CUE Chunk Metadata Parsing Integer Overflow Leading to Heap Buffer Overflow on 32-bit Builds

Wed, 05 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 05 Aug 2026 15:00:00 +0000

Type Values Removed Values Added
First Time appeared Mackron
Mackron dr Libs
Vendors & Products Mackron
Mackron dr Libs

Wed, 05 Aug 2026 13:15:00 +0000

Type Values Removed Values Added
Description 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.
Title dr_wav.h W64 CUE Chunk Metadata Parsing Integer Overflow Leading to Heap Buffer Overflow on 32-bit Builds
Weaknesses CWE-190
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T11:46:24.262Z

Reserved: 2026-08-05T12:23:34.966Z

Link: CVE-2026-71261

cve-icon Vulnrichment

Updated: 2026-08-05T15:37:03.655Z

cve-icon NVD

Status : Deferred

Published: 2026-08-05T13:24:50.233

Modified: 2026-08-26T17:13:24.800

Link: CVE-2026-71261

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T21:45:03Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound