{"id":"CVE-2026-125209","summary":"FFmpeg before 8.1.3 and 9.x before 9.0.2 Heap Buffer Overflow via dvdsubenc.c","details":"FFmpeg before 8.1.3 and 9.x before 9.0.2 contains a heap buffer overflow vulnerability in the DVD subtitle encoder that underestimates RLE output size for odd-width rectangles. Attackers can supply files with crafted bitmap subtitles that, when transcoded to the dvdsub encoder, write past the output buffer and corrupt heap memory.","modified":"2026-11-15T07:04:15.112945688Z","published":"2026-11-09T19:11:26.674Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125209.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-131"]},"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-125209.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125209"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ffmpeg-before-8.1.3-and-9-x-before-9.0.2-heap-buffer-overflow-via-dvdsubenc-c"},{"type":"REPORT","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24486"},{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/8702f12c9daa199cc4d7c17164b13c3cdcdc2436"},{"type":"PACKAGE","url":"https://github.com/FFmpeg/FFmpeg"},{"type":"ARTICLE","url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.1/libavcodec/dvdsubenc.c#L344"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"fixed":"1041abdc962f4cc4f394aa8de9dc5236c0c3b9e7"},{"introduced":"d32b387f2b0a484599d4587d651891f0c63c4238"},{"fixed":"946fcce07b6dcd0331c8cc609192aeff5e1924f8"},{"fixed":"8702f12c9daa199cc4d7c17164b13c3cdcdc2436"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"8.1.3"}],"source":"AFFECTED_FIELD"},{"strategy":"StandardRange","range":[{"introduced":"9.0"},{"fixed":"9.0.2"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"8702f12c9daa199cc4d7c17164b13c3cdcdc2436"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["n9.0.1","n9.0","n8.1.2","n9.1-dev","n8.1.1","n8.1","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-125209.json","vanir_signatures":[{"digest":{"function_hash":"105442483210926319160465196797642082364","length":4774},"id":"CVE-2026-125209-397b5519","signature_type":"Function","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/1041abdc962f4cc4f394aa8de9dc5236c0c3b9e7","target":{"file":"libavformat/tls_gnutls.c","function":"tls_open"},"deprecated":false},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/8702f12c9daa199cc4d7c17164b13c3cdcdc2436","target":{"function":"dvdsub_encode","file":"libavcodec/dvdsubenc.c"},"deprecated":false,"digest":{"length":4461,"function_hash":"305363726265882826975213923977434811120"},"id":"CVE-2026-125209-424c3989"},{"target":{"file":"libavcodec/dvdsubenc.c"},"deprecated":false,"digest":{"line_hashes":["260284510808699373431027430485647617891","241103705606706103838010921677151902718","121251195721472991058828214238837532576","184599462668106748314129197217941170532"],"threshold":0.9},"id":"CVE-2026-125209-a559bb17","signature_type":"Line","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/8702f12c9daa199cc4d7c17164b13c3cdcdc2436"},{"id":"CVE-2026-125209-bb8a9c63","signature_type":"Line","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/1041abdc962f4cc4f394aa8de9dc5236c0c3b9e7","target":{"file":"libavformat/tls_gnutls.c"},"deprecated":false,"digest":{"line_hashes":["294743355700093164049687108208873085085","224965271620837188898662069401134792161","265157521262625521451262118292114363008","25267032580962748686041211766260548539","288771055614593351168329352873927446828","53989852260687713572797447970147499102","85263668306260175235908565784155404500","126708715019858463115413013055776439727","250936792900039357966242742548850663615","233269261520550088398052581304792306815","100169017263657203071873393627980140697","259030622961485660928302215624760282163","207706088114512659742213377410159498610","240026302395214622814105709906272076705","307969978196503324667336784936863433154","248723093221806719839251281363761281731","295275768641886040795633308418339589772","246824707463387711938561227461300764945","218915441499077723859496405218262171036","287680861236209989555898420906212164973","89283821891072419980986328050002025119","35321890611978964423610561484240052326","293356392578078406821798609450059364653","176799238777128513161325516005692082610","306300210666150773252873265185691743758","172210818910291424728612305586102494925","91354717951606701022962506954206737364","27898421268780237467740626846927593971","43363202001267167103800358854796501422"],"threshold":0.9}}],"vanir_signatures_modified":"2026-11-15T07:04:15Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}