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.
{
"license": "CC-BY-4.0",
"sources": [
{
"database_specific": {
"status": "Analyzed"
},
"modified": "2026-08-07T00:21:44.370Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-65706",
"published": "2026-07-23T20:17:22.257Z",
"id": "CVE-2026-65706",
"imported": "2026-08-07T05:41:14.685Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-65706"
},
{
"modified": "2026-07-23T21:31:09Z",
"url": "https://api.github.com/advisories/GHSA-g9rh-4g64-7qxg",
"published": "2026-07-23T21:31:02Z",
"id": "GHSA-g9rh-4g64-7qxg",
"imported": "2026-08-07T05:41:17.813Z",
"html_url": "https://github.com/advisories/GHSA-g9rh-4g64-7qxg"
},
{
"modified": "2026-07-28T01:06:13Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-48373",
"published": "2026-07-23T19:05:11Z",
"id": "EUVD-2026-48373",
"imported": "2026-08-07T05:41:15.450Z",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-48373"
}
]
}