{"id":"CVE-2026-125203","summary":"FFmpeg before 8.1.3 and 9.x before 9.0.2 Heap Buffer Overflow in Cook Multichannel Decoder","details":"FFmpeg before 8.1.3 and 9.x before 9.0.2 contains a heap buffer overflow vulnerability in the Cook multichannel decoder in libavcodec/cook.c that fails to verify subpacket channel masks are disjoint. Attackers can supply a crafted RealMedia Cook stream with overlapping subpacket masks, causing cook_decode_frame() to write decoded samples beyond allocated output planes in any application decoding the file.","modified":"2026-11-12T07:06:24.907775814Z","published":"2026-11-09T19:11:22.136Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125203.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-787"]},"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-125203.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125203"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ffmpeg-before-8.1.3-and-9-x-before-9.0.2-heap-buffer-overflow-in-cook-multichannel-decoder"},{"type":"REPORT","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24485"},{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/3e09f5e24eb277a6d011745ff03e602f61c5c171"},{"type":"PACKAGE","url":"https://github.com/FFmpeg/FFmpeg"},{"type":"ARTICLE","url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.1/libavcodec/cook.c#L1294"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"fixed":"1041abdc962f4cc4f394aa8de9dc5236c0c3b9e7"},{"introduced":"d32b387f2b0a484599d4587d651891f0c63c4238"},{"fixed":"946fcce07b6dcd0331c8cc609192aeff5e1924f8"},{"fixed":"3e09f5e24eb277a6d011745ff03e602f61c5c171"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"8.1.3"}]},{"strategy":"StandardRange","range":[{"introduced":"9.0"},{"fixed":"9.0.2"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"3e09f5e24eb277a6d011745ff03e602f61c5c171"}],"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-125203.json","vanir_signatures":[{"source":"https://github.com/ffmpeg/ffmpeg/commit/1041abdc962f4cc4f394aa8de9dc5236c0c3b9e7","target":{"function":"tls_open","file":"libavformat/tls_gnutls.c"},"deprecated":false,"digest":{"function_hash":"105442483210926319160465196797642082364","length":4774},"id":"CVE-2026-125203-397b5519","signature_type":"Function","signature_version":"v1"},{"digest":{"length":6824,"function_hash":"276187639459275094622648614878422986691"},"id":"CVE-2026-125203-ad9f5ad0","signature_type":"Function","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/3e09f5e24eb277a6d011745ff03e602f61c5c171","target":{"file":"libavcodec/cook.c","function":"cook_decode_init"},"deprecated":false},{"id":"CVE-2026-125203-adf8aef4","signature_type":"Line","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/3e09f5e24eb277a6d011745ff03e602f61c5c171","target":{"file":"libavcodec/cook.c"},"deprecated":false,"digest":{"line_hashes":["104713117714843178320613822271102071007","163040083322491880984349405514649555860","92119804160663270932144932082663110573"],"threshold":0.9}},{"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},"id":"CVE-2026-125203-bb8a9c63","signature_type":"Line","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/1041abdc962f4cc4f394aa8de9dc5236c0c3b9e7","target":{"file":"libavformat/tls_gnutls.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:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}