Buffer overflow in Ffmpeg
CVE-2026-65706
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.
EPSS: 0.002 (8.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
Affected products
- Ffmpeg — versions 3.0, a7e38b617b32f996beaa371bbf04b39907d7a527
Weakness classification (CWE)
References
- disclosure@vulncheck.com (issue-tracking, Patch, Issue Tracking)
- disclosure@vulncheck.com (Patch, patch)
- disclosure@vulncheck.com (Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2026-65706?
- CVE-2026-65706 is a high-severity vulnerability in Ffmpeg, classified under Incorrect Calculation of Buffer Size. CVSS score: 7.8/10. Published 2026-07-23.
- How severe is CVE-2026-65706?
- High severity. CVSS v3 base score is 7.8 out of 10.