# JLSEC-2026-1181: FFmpeg versions 3.0 through 8.1.2 contain an out-of-bounds write vulnerability in the vf_swaprect...

- Severity: High 7.8 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-07T13:27:45.313Z
- Modified: 2026-08-08T23:15:04.379Z
- Related: CVE-2026-65706, GHSA-g9rh-4g64-7qxg, EUVD-2026-48373

## 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 Julia Security Advisories.)

## Affected

- FFMPEG_jll (Julia): before 9.0.0+0
- FFMPEG_nogpl_jll (Julia): before 9.0.0+0
- FFplay_jll (Julia): before 9.0.0+0

## Every score

- Julia Security Advisories: 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`
- Julia Security Advisories: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/a7e38b617b32f996beaa371bbf04b39907d7a527> (web)
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23779> (web)
- <https://github.com/advisories/GHSA-g9rh-4g64-7qxg> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-65706> (web)
- <https://www.vulncheck.com/advisories/ffmpeg-vf-swaprect-out-of-bounds-write-via-nv12-frame-processing> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-1181](https://osv.dev/vulnerability/JLSEC-2026-1181), CC-BY-4.0, modified 2026-08-08

---

Page: https://cve.day/JLSEC-2026-1181 · Whole record: https://cve.day/JLSEC-2026-1181.json · Rebuilt by cve.day 2026-11-25T22:56:25.892Z
