VDB

CVE-2026-65706

CVE-2026-65706 PUBLISHED CVSS 8.5 HIGH

FFmpeg 3.0 - 8.1.2 vf_swaprect Out-of-Bounds Write via NV12 Frame Processing

Reported by vulncheck · Published July 23, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ffmpeg-8.1Chainguard8.1.3-r0
FFmpegFFmpeg8.1.2

Risk scores

CVSS 4.0
8.5
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

Affected products

VendorProductVersions
FFmpegFFmpeg3.0, a7e38b617b32f996beaa371bbf04b39907d7a527
FFmpegFFmpeg*, 3.0
chainguardffmpeg-8.10
ffmpegffmpeg3.0
wolfiffmpeg-8.10
chainguardeco-python-ffmpeg-8-minimal0

Timeline

  • Jul 23, 2026 CVE Published
  • Jul 24, 2026 EPSS Score (14 in total, the first dated here)
  • Jul 24, 2026 Coalition ESS Score
  • Jul 25, 2026 Security Advisory (2 in total, the first dated here)
  • Oct 24, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-65706
vulnetix vdb fixes CVE-2026-65706

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-65706/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›