CVE-2026-65706CWE-131CWE-787

CVE-2026-65706

High · published July 24, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
7.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00187 · 7.9th percentile
Weaknesses
CWE-131 · Incorrect Calculation of Buffer Size; CWE-787 · Out-of-bounds Write
Published
2026-07-24T00:17Z
Affected products (1)
ProductVersionsFixed in
ffmpeg/ffmpeg≥ 3.0, ≤ 8.1.2—
References (3)
EPSS history
Timeline
  • 23 JUL 19:05Z
    FFmpeg 3.0 - 8.1.2 vf_swaprect Out-of-Bounds Write via NV12 Frame Processing
    cvelistv5