# CVE-2026-135712: FFmpeg before 9.1 Integer Overflow Out-of-Bounds Read via img2enc.c write_packet()

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/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.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-11-24T03:14:04.405Z
- Modified: 2026-11-25T19:14:18.993Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

FFmpeg before 9.1 contains an integer overflow vulnerability in the split_planes size check of write_packet() in libavformat/img2enc.c that allows out-of-bounds heap reads. Attackers can supply a crafted input whose rawvideo stream declares very large width and height, remuxed into .y image files, to leak heap memory into output files or crash the application.

(As written by CVE List.)

## Affected

- FFmpeg FFmpeg: before 9.1

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H`

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24932> (issue-tracking, patch)
- <https://github.com/FFmpeg/FFmpeg/commit/ff53919a2d8442058d58ba0e83d16cc9e29d73fb> (patch)
- <https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/img2enc.c#L214> (product, technical-description)
- <https://github.com/FFmpeg/FFmpeg> (product)
- <https://www.vulncheck.com/advisories/ffmpeg-before-9.1-integer-overflow-out-of-bounds-read-via-img2enc-c-write-packet> (third-party-advisory)

## Sources

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

---

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