{"id":"JLSEC-2026-1181","aliases":["JLSEC-2026-1181"],"related":["CVE-2026-65706","GHSA-g9rh-4g64-7qxg","EUVD-2026-48373"],"kind":"vulnerability","state":"published","title":"FFmpeg versions 3.0 through 8.1.2 contain an out-of-bounds write vulnerability in the vf_swaprect...","summary":"FFmpeg versions 3.0 through 8.1.2 contain an out-of-bounds write vulnerability in the `vf_swaprect` video filter that allows attackers to corrupt heap memory by supplying a crafted NV12 video frame with odd width dimensions. The `filter_frame()` function reuses a temporary row buffer sized for plane 0's single-byte pixel step across all planes, causing an 18-byte memcpy into a 17-byte heap allocation when processing the two-byte-per-sample interleaved chroma plane of a 17x16 NV12 frame, resulting in heap corruption and process crash with potential for code execution.","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"FFmpeg versions 3.0 through 8.1.2 contain an out-of-bounds write vulnerability in the `vf_swaprect` video filter that allows attackers to corrupt heap memory by supplying a crafted NV12 video frame with odd width dimensions. The `filter_frame()` function reuses a temporary row buffer sized for plane 0's single-byte pixel step across all planes, causing an 18-byte memcpy into a 17-byte heap allocation when processing the two-byte-per-sample interleaved chroma plane of a 17x16 NV12 frame, resulting in heap corruption and process crash with potential for code execution.","format":"markdown","source":"jlsec"}],"published":"2026-08-07T13:27:45.313Z","modified":"2026-08-08T23:15:04.379Z","severity":{"scorer":"Julia Security Advisories","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"},"severities":[{"scorer":"Julia Security Advisories","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"},{"scorer":"Julia Security Advisories","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.0.0+0"}],"ecosystem":"Julia","package":"FFMPEG_jll","purl":"pkg:julia/FFMPEG_jll?uuid=b22a6f82-2f65-5046-a5b2-351ab43fb4e5","source":"jlsec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.0.0+0"}],"ecosystem":"Julia","package":"FFMPEG_nogpl_jll","purl":"pkg:julia/FFMPEG_nogpl_jll?uuid=a6892c6b-5768-548c-b024-ff8dabf482c5","source":"jlsec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.0.0+0"}],"ecosystem":"Julia","package":"FFplay_jll","purl":"pkg:julia/FFplay_jll?uuid=c4dce911-e170-5107-8314-c7bdc6785395","source":"jlsec"}],"references":[{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/a7e38b617b32f996beaa371bbf04b39907d7a527","tags":["web"],"sources":["jlsec"]},{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23779","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/advisories/GHSA-g9rh-4g64-7qxg","tags":["web"],"sources":["jlsec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65706","tags":["web"],"sources":["jlsec"]},{"url":"https://www.vulncheck.com/advisories/ffmpeg-vf-swaprect-out-of-bounds-write-via-nv12-frame-processing","tags":["web"],"sources":["jlsec"]}],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-1181","url":"https://osv.dev/vulnerability/JLSEC-2026-1181","licence":"CC-BY-4.0","modified":"2026-08-08T23:15:04.379Z"}],"updatedAt":"2026-11-25T22:56:25.892Z"}