Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.1

CVE-2026-145314: FFmpeg video decoder can overrun memory on crafted MPEG files

CVE-2026-145314 · published today
Summary

FFmpeg versions before the latest releases can write beyond the allocated memory when processing certain MPEG-1/2 videos, especially when using the default multi‑core decoding mode. An attacker could supply a specially crafted video file that causes the program to corrupt its own memory, potentially leading to a crash or unauthorized actions. Upgrade FFmpeg to the versions that include the fix or disable slice threading if an update is not immediately possible.

What to do
  • Update ffmpeg ffmpeg to version 6.1.7 or later.
Affected software
VendorProductAffected versions
ffmpeg ffmpeg < 6.1.7
Original advisory text
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 com...
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.
Severity
9.1 Critical
Type
CWE-787Out-of-bounds Write
CWE-672Operation on a Resource after Expiration or Release
Timeline
Published4 Dec 2026
Updated4 Dec 2026
First seen4 Dec 2026
Sources
CVE-2026-145314 · MITRE
Track software like this
Free during beta