{"id":"CVE-2026-65704","aliases":["CVE-2026-65704"],"related":[],"kind":"vulnerability","state":"published","title":"FFmpeg 8.1.2 Out-of-Bounds Write via TY Demuxer and Shorten Decoder","summary":"FFmpeg through 8.1.2 contains an out-of-bounds write vulnerability that allows attackers to cause heap corruption by supplying a crafted ffconcat file processed with the -safe 0 flag. The TY demuxer's demux_audio() function decrements packet size without bounds checking, producing a negative size value that is passed to memcpy() in shorten_decode_frame(), where conversion to size_t wraps the value to near SIZE_MAX and triggers reads beyond the source allocation and writes far beyond the Shorten decoder's bitstream buffer.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"FFmpeg through 8.1.2 contains an out-of-bounds write vulnerability that allows attackers to cause heap corruption by supplying a crafted ffconcat file processed with the -safe 0 flag. The TY demuxer's demux_audio() function decrements packet size without bounds checking, producing a negative size value that is passed to memcpy() in shorten_decode_frame(), where conversion to size_t wraps the value to near SIZE_MAX and triggers reads beyond the source allocation and writes far beyond the Shorten decoder's bitstream buffer.","source":"cvelist"}],"published":"2026-07-23T18:55:41.842Z","modified":"2026-08-07T00:16:40.287Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.3,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-191","CWE-787"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"8.1.2","status":"affected"},{"type":"git","version":"de771bd52774a52d45b0e2c82e56995a1ef40df7","status":"unaffected"}],"vendor":"FFmpeg","product":"FFmpeg","repo":"https://code.ffmpeg.org/FFmpeg/FFmpeg","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"8.1.2"}],"vendor":"ffmpeg","product":"ffmpeg","cpe":"cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23767","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/de771bd52774a52d45b0e2c82e56995a1ef40df7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/ffmpeg-out-of-bounds-write-via-ty-demuxer-and-shorten-decoder","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Adrian Junge (vurlo)"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-23T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-65704","url":"https://www.cve.org/CVERecord?id=CVE-2026-65704","licence":"CVE Terms of Use","modified":"2026-07-28T01:06:12.410Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-65704","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65704","licence":"Public domain","modified":"2026-08-07T00:16:40.287Z"}],"updatedAt":"2026-11-25T22:59:29.953Z","epss":{"score":0.00119,"percentile":0.01938,"date":"2026-12-01T12:00:22.000Z"}}