{"id":"CVE-2026-125211","summary":"FFmpeg through 9.0.2 Heap Corruption via libaribcaption ASS Error Cleanup","details":"FFmpeg through 9.0.2 contains an out-of-bounds read and invalid free vulnerability in aribcaption_trans_ass_subtitle() in libavcodec/libaribcaption.c that frees subtitle rectangles using region_count instead of num_rects. Attackers can supply crafted ARIB captions whose later region exceeds the 8 KiB AVBPrint limit, triggering cleanup that frees out-of-bounds pointers and corrupts the heap.","modified":"2026-11-12T07:06:24.191165958Z","published":"2026-11-09T19:11:28.113Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125211.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-125"]},"references":[{"type":"WEB","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125211.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125211"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-corruption-via-libaribcaption-ass-error-cleanup"},{"type":"REPORT","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24992"},{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/4ec127c82678b06658e963291f272881dc878735"},{"type":"PACKAGE","url":"https://github.com/FFmpeg/FFmpeg"},{"type":"ARTICLE","url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/libaribcaption.c#L778"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"fixed":"4ec127c82678b06658e963291f272881dc878735"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"9.0.2"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"4ec127c82678b06658e963291f272881dc878735"}]}]}}],"versions":["n9.1-dev","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-125211.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/4ec127c82678b06658e963291f272881dc878735","target":{"file":"libavcodec/libaribcaption.c"},"deprecated":false,"digest":{"line_hashes":["36186179363409000741498465594210497233","177803172469468906043373899013484463776","245787453173429538017137940339857812187","98555256435278996237389100762642425617"],"threshold":0.9},"id":"CVE-2026-125211-cdd4f282","signature_type":"Line"},{"deprecated":false,"digest":{"function_hash":"227088130286691645368368043305730595133","length":5765},"id":"CVE-2026-125211-db5c7380","signature_type":"Function","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/4ec127c82678b06658e963291f272881dc878735","target":{"function":"aribcaption_trans_ass_subtitle","file":"libavcodec/libaribcaption.c"}}],"vanir_signatures_modified":"2026-11-12T07:06:24Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}