{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.14.4"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "86cc48cbfd981fa00ea94905ac9d6df4b18d4e59"
            },
            {
              "fixed": "8a7258cc66b49387ad58cc5b81568982a3560d49"
            }
          ],
          "repo": "https://github.com/mackron/dr_libs",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2026-29022",
  "modified": "2026-04-01T23:08:27.413318785Z",
  "published": "2026-03-03T20:16:49.433Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/mackron-dr-libs-heap-buffer-overflow-via-wav-file"
    },
    {
      "type": "FIX",
      "url": "https://github.com/mackron/dr_libs/issues/296"
    },
    {
      "type": "FIX",
      "url": "https://github.com/mackron/dr_libs/commit/8a7258cc66b49387ad58cc5b81568982a3560d49"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/marlinkcyber/advisories/blob/main/advisories/MCSAID-2026-001-dr-libs-heap-overflow.md"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}