{"id":"CVE-2026-145314","state":"PUBLISHED","title":"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 enable","description":"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.","publishedAt":"2026-12-04T19:04:56.760Z","updatedAt":"2026-12-04T19:04:56.760Z","severity":{"score":7.2,"label":"High","version":"4.0","vector":"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","source":"Anthropic"},"assigner":"Anthropic","products":["FFmpeg FFmpeg"],"affected":[{"vendor":"FFmpeg","product":"FFmpeg","packageURL":"pkg:github/ffmpeg/ffmpeg","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"6.1.7","versionType":"semver"},{"version":"7.0","status":"affected","lessThan":"7.1","versionType":"semver"},{"version":"7.1","status":"affected","lessThan":"7.1.6","versionType":"semver"},{"version":"8.0","status":"affected","lessThan":"8.0.4","versionType":"semver"},{"version":"8.1","status":"affected","lessThan":"8.1.4","versionType":"semver"},{"version":"9.0","status":"affected","lessThan":"9.0.3","versionType":"semver"}],"collectionURL":"https://github.com/FFmpeg/FFmpeg","programFiles":["libavcodec/mpeg12dec.c"]}],"references":["https://github.com/FFmpeg/FFmpeg/commit/f1a000d41f3b5de2c305b5abb6e2718d070fedcc","https://github.com/FFmpeg/FFmpeg/commit/9b7ca3b71d3e","https://ffmpeg.org/security.html"],"weaknesses":["CWE-787","CWE-672"],"ingestedAt":"2026-12-04T19:18:05.845Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/145xxx/CVE-2026-145314.json","commit":"54d9956e58927bb2e234798e3c42bdd5ce28d687","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-145314","state":"PUBLISHED","datePublished":"2026-12-04T19:04:56.760Z","dateUpdated":"2026-12-04T19:04:56.760Z","assignerShortName":"Anthropic","assignerOrgId":"98a01053-8a31-4f6d-9aa9-252be161adc6","dateReserved":"2026-12-04T18:50:13.476Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"FFmpeg","product":"FFmpeg","packageURL":"pkg:github/ffmpeg/ffmpeg","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"6.1.7","versionType":"semver"},{"version":"7.0","status":"affected","lessThan":"7.1","versionType":"semver"},{"version":"7.1","status":"affected","lessThan":"7.1.6","versionType":"semver"},{"version":"8.0","status":"affected","lessThan":"8.0.4","versionType":"semver"},{"version":"8.1","status":"affected","lessThan":"8.1.4","versionType":"semver"},{"version":"9.0","status":"affected","lessThan":"9.0.3","versionType":"semver"}],"collectionURL":"https://github.com/FFmpeg/FFmpeg","programFiles":["libavcodec/mpeg12dec.c"]}],"references":[{"url":"https://github.com/FFmpeg/FFmpeg/commit/f1a000d41f3b5de2c305b5abb6e2718d070fedcc","tags":["patch"]},{"url":"https://github.com/FFmpeg/FFmpeg/commit/9b7ca3b71d3e","tags":["issue-tracking"]},{"url":"https://ffmpeg.org/security.html","tags":["vendor-advisory"]}],"metrics":[{"cvssV4_0":{"version":"4.0","vectorString":"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","baseScore":7.2,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","lang":"en","type":"CWE","description":"CWE-787 Out-of-bounds Write"},{"cweId":"CWE-672","lang":"en","type":"CWE","description":"CWE-672 Operation on a Resource after Expiry or Release"}]}],"providerMetadata":{"shortName":"Anthropic","orgId":"98a01053-8a31-4f6d-9aa9-252be161adc6","dateUpdated":"2026-12-04T19:04:56.760Z"},"credits":[{"lang":"en","type":"finder","value":"Claude (Anthropic)"},{"lang":"en","type":"finder","value":"Ada Logics"}]}}}}