{"id":"JLSEC-2026-1181","summary":"FFmpeg versions 3.0 through 8.1.2 contain an out-of-bounds write vulnerability in the vf_swaprect...","details":"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.","modified":"2026-08-08T23:15:04.379558697Z","published":"2026-08-07T13:27:45.313Z","upstream":["CVE-2026-65706","GHSA-g9rh-4g64-7qxg","EUVD-2026-48373"],"database_specific":{"sources":[{"imported":"2026-08-08T05:24:16.171Z","modified":"2026-08-07T00:21:44.370Z","published":"2026-07-23T20:17:22.257Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-65706","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65706","database_specific":{"status":"Analyzed"},"id":"CVE-2026-65706"},{"url":"https://api.github.com/advisories/GHSA-g9rh-4g64-7qxg","html_url":"https://github.com/advisories/GHSA-g9rh-4g64-7qxg","id":"GHSA-g9rh-4g64-7qxg","imported":"2026-08-08T05:24:21.914Z","modified":"2026-07-23T21:31:09Z","published":"2026-07-23T21:31:02Z"},{"id":"EUVD-2026-48373","imported":"2026-08-08T05:24:18.450Z","modified":"2026-07-28T01:06:13Z","published":"2026-07-23T19:05:11Z","url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-48373","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-48373"}],"license":"CC-BY-4.0"},"references":[{"type":"WEB","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/a7e38b617b32f996beaa371bbf04b39907d7a527"},{"type":"WEB","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23779"},{"type":"WEB","url":"https://github.com/advisories/GHSA-g9rh-4g64-7qxg"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65706"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/ffmpeg-vf-swaprect-out-of-bounds-write-via-nv12-frame-processing"}],"affected":[{"package":{"name":"FFMPEG_jll","ecosystem":"Julia","purl":"pkg:julia/FFMPEG_jll?uuid=b22a6f82-2f65-5046-a5b2-351ab43fb4e5"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"9.0.0+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1181.json"}},{"package":{"name":"FFMPEG_nogpl_jll","ecosystem":"Julia","purl":"pkg:julia/FFMPEG_nogpl_jll?uuid=a6892c6b-5768-548c-b024-ff8dabf482c5"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"9.0.0+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1181.json"}},{"package":{"name":"FFplay_jll","ecosystem":"Julia","purl":"pkg:julia/FFplay_jll?uuid=c4dce911-e170-5107-8314-c7bdc6785395"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"9.0.0+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1181.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"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"}]}