{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "14.4.2"
              },
              {
                "fixed": "14.4.2"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "45b161d73ec087a8e003747b1aed07cd33589bca"
            }
          ],
          "repo": "https://github.com/chirlu/sox",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111157.json"
  },
  "details": "SoX through 14.4.2 contains a heap out-of-bounds write vulnerability in lsx_ms_adpcm_block_expand_i() in src/adpcm.c, triggered by an odd samplesPerBlock value in the WAV fmt chunk. Attackers can supply a crafted MS ADPCM WAV file to sox or any libsox consumer to write a partially controlled 16-bit sample past the heap buffer allocated by wav_ms_adpcm_fmt().",
  "id": "CVE-2026-111157",
  "modified": "2026-10-17T02:30:26.794381915Z",
  "published": "2026-10-15T18:57:46.205Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://sourceforge.net/projects/sox/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111157.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-111157"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/sox-through-14.4.2-heap-out-of-bounds-write-via-ms-adpcm-wav-decoding"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/chirlu/sox"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/chirlu/sox/blob/42b3557e13e0fe01a83465b672d89faddbe65f49/src/adpcm.c#L144-L166"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/chirlu/sox/blob/42b3557e13e0fe01a83465b672d89faddbe65f49/src/wav.c#L250-L251"
    },
    {
      "type": "EVIDENCE",
      "url": "https://hackmd.io/@haind-pwn/sox-wav-ms-adpcm-samplesperblock-oob-write"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "SoX through 14.4.2 Heap Out-of-Bounds Write via MS ADPCM WAV Decoding"
}