{"id":"CVE-2026-145314","details":"A heap out-of-bounds write exists in the MPEG-1/2 video decoder (libavcodec/mpeg12dec.c) in FFmpeg before 6.1.7, 7.1.6, 8.0.4, 8.1.4, 9.0.3, and 9.1. When slice threading is enabled (the ffmpeg command-line default on multi-core hosts), a slice-decoding job queued while the decoder parses a codec's extradata is not flushed before the first packet is decoded, so it runs with mismatched field/frame picture geometry and writes inverse-DCT output -- with byte values controlled by the input -- past the end of the allocated luma and chroma planes. Processing a crafted MPEG-1/2 file (e.g. in an AVI, Matroska, or MP4 container) therefore corrupts heap memory.","modified":"2026-12-04T21:02:48.159401414Z","published":"2026-12-04T19:04:56.760Z","database_specific":{"cwe_ids":["CWE-672","CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145314.json","cna_assigner":"Anthropic"},"references":[{"type":"ADVISORY","url":"https://ffmpeg.org/security.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145314.json"},{"type":"PACKAGE","url":"https://github.com/FFmpeg/FFmpeg"},{"type":"REPORT","url":"https://github.com/FFmpeg/FFmpeg/commit/9b7ca3b71d3e"},{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/f1a000d41f3b5de2c305b5abb6e2718d070fedcc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-145314"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"fixed":"64f08760e20e4b48b5278f1cc1f8829f3c198f5c"},{"introduced":"083443d67cb159ce469e5d902346b8d0c2cd1c93"},{"fixed":"6b213175c90534e0ad1924bfeba2cf7e20db5bf2"},{"introduced":"6b213175c90534e0ad1924bfeba2cf7e20db5bf2"},{"fixed":"bfc1195a2bc9b3d88cd4d1fddfb23193a6ef08ee"},{"introduced":"140fd653aed8cad774f991ba083e2d01e86420c7"},{"fixed":"254f19d922331abe208bd4f0b7df0fb0d493fd4a"},{"introduced":"638b521c7b09e00514aa13ade43c389b4b40ddfd"},{"fixed":"b591b1fc0f69af869a2462963b96ef8aeeb456b6"},{"introduced":"d32b387f2b0a484599d4587d651891f0c63c4238"},{"fixed":"76c070aa057b590b75343e848f8b98b03c496572"},{"fixed":"f1a000d41f3b5de2c305b5abb6e2718d070fedcc"},{"fixed":"9b7ca3b71d3e"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"6.1.7"}]},{"strategy":"StandardRange","range":[{"introduced":"7.0"},{"fixed":"7.1"}],"source":"AFFECTED_FIELD"},{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"7.1"},{"fixed":"7.1.6"}]},{"strategy":"StandardRange","range":[{"introduced":"8.0"},{"fixed":"8.0.4"}],"source":"AFFECTED_FIELD"},{"strategy":"StandardRange","range":[{"introduced":"8.1"},{"fixed":"8.1.4"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"9.0"},{"fixed":"9.0.3"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"f1a000d41f3b5de2c305b5abb6e2718d070fedcc"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"9b7ca3b71d3e"}]}]}}],"versions":["n8.1.3","n9.0.2","n9.0.1","n9.0","n8.1.2","n9.1-dev","n8.0.3","n6.1.6","n6.1.5","n8.1.1","n8.0.2","n8.1","n8.2-dev","n6.1.4","n8.0.1","n6.1.3","n8.0","n8.1-dev","n6.1.2","n6.1.1","n6.1","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-145314.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N"}]}