{"id":"CVE-2026-135712","summary":"FFmpeg before 9.1 Integer Overflow Out-of-Bounds Read via img2enc.c write_packet()","details":"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.","modified":"2026-11-24T05:01:09.222691399Z","published":"2026-11-24T03:14:04.405Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135712.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-190"]},"references":[{"type":"WEB","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg"},{"type":"REPORT","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24932"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135712.json"},{"type":"PACKAGE","url":"https://github.com/FFmpeg/FFmpeg"},{"type":"ARTICLE","url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/img2enc.c#L214"},{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/ff53919a2d8442058d58ba0e83d16cc9e29d73fb"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135712"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ffmpeg-before-9.1-integer-overflow-out-of-bounds-read-via-img2enc-c-write-packet"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"fixed":"d66e84695b1a9627e04c77d2fdb4fdd7762c8c30"},{"fixed":"ff53919a2d8442058d58ba0e83d16cc9e29d73fb"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"9.1"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"ff53919a2d8442058d58ba0e83d16cc9e29d73fb"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["n8.2-dev","n8.1-dev","n7.2-dev","n7.1-dev","n6.2-dev","n6.1-dev","n5.2-dev","n5.1-dev","n4.5-dev","n4.4-dev","n4.3-dev","n4.2-dev","n4.1-dev","n3.5-dev","n3.4-dev","n3.3-dev","n3.2-dev","n3.1-dev","n2.9-dev","n2.8-dev","n2.7-dev","n2.6-dev","n2.5-dev","n2.4-dev","n2.3-dev","n2.2-dev","n2.0","n2.1-dev","n1.3-dev","n1.2-dev","n1.1-dev","n0.12-dev","n0.11-dev","n0.8","N"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-135712.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}