FFmpeg before 9.1 contains a heap-based buffer overflow vulnerability in peak_init_writer() and wav_write_packet() in libavformat/wavenc.c that allows attackers to corrupt heap memory by supplying audio with zero channels. Attackers can provide a crafted PCM stream declaring no channels for WAV output with peak envelope enabled, causing out-of-bounds writes past peak_maxpos and peak_maxneg arrays, crashes, and potential code execution.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"ffmpeg:ffmpeg": [
"< 9.1"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-135722",
"id": "CVE-2026-135722",
"imported": "2026-12-02T20:13:53.565Z",
"modified": "2026-11-28T04:17:04.613Z",
"published": "2026-11-24T04:17:30.013Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-135722"
},
{
"html_url": "https://github.com/advisories/GHSA-6g37-r68h-8wh2",
"id": "GHSA-6g37-r68h-8wh2",
"imported": "2026-12-02T20:15:18.027Z",
"modified": "2026-11-24T06:30:34Z",
"published": "2026-11-24T06:30:33Z",
"url": "https://api.github.com/advisories/GHSA-6g37-r68h-8wh2"
},
{
"affected": {
"FFMPEG:FFmpeg": [
"0 <9.1"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-133627",
"id": "EUVD-2026-133627",
"imported": "2026-12-02T20:13:54.579Z",
"modified": "2026-11-28T03:37:33Z",
"published": "2026-11-24T03:13:53Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-133627"
}
]
}