CVE-2026-65706
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ffmpeg-8.1 | Chainguard | 8.1.3-r0 |
| FFmpeg | FFmpeg | 8.1.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| FFmpeg | FFmpeg | 3.0, a7e38b617b32f996beaa371bbf04b39907d7a527 |
| FFmpeg | FFmpeg | *, 3.0 |
| chainguard | ffmpeg-8.1 | 0 |
| ffmpeg | ffmpeg | 3.0 |
| wolfi | ffmpeg-8.1 | 0 |
| chainguard | eco-python-ffmpeg-8-minimal | 0 |
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
- Pull Request issue-tracking
- Patch Commit patch
- third-party-advisory