# CVE-2026-65706: FFmpeg 3.0 - 8.1.2 vf_swaprect Out-of-Bounds Write via NV12 Frame Processing

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-07-23T19:05:11.560Z
- Modified: 2026-10-24T15:10:00.190Z
- Weaknesses: CWE-131, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- FFmpeg FFmpeg: from 3.0 up to 8.1.2 (not affected: a7e38b617b32f996beaa371bbf04b39907d7a527)

## Every score

- VulnCheck: CVSS:4.0 8.5 High `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`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23779> (issue-tracking, patch)
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/a7e38b617b32f996beaa371bbf04b39907d7a527> (patch)
- <https://www.vulncheck.com/advisories/ffmpeg-vf-swaprect-out-of-bounds-write-via-nv12-frame-processing> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-65706](https://www.cve.org/CVERecord?id=CVE-2026-65706), CVE Terms of Use, modified 2026-07-28
- NVD: [CVE-2026-65706](https://nvd.nist.gov/vuln/detail/CVE-2026-65706), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-65706 · Whole record: https://cve.day/CVE-2026-65706.json · Rebuilt by cve.day 2026-11-25T22:59:29.954Z
