CVE-2026-145314: High severity FFmpeg FFmpeg vulnerability
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.1.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.1.6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.0.4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.1.4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.0.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.1
Event History
Frequently Asked Questions
Which deployments are most likely to be exposed?
FFmpeg deployments that decode MPEG-1 or MPEG-2 content with slice threading enabled are exposed. The ffmpeg command-line tool enables slice threading by default on multi-core hosts, so command-line processing of untrusted MPEG-1/2 media on such systems is particularly relevant.
What does an attacker need to do to trigger the issue?
An attacker needs to cause the affected decoder to process a crafted MPEG-1/2 video file. The malicious video can be carried in containers such as AVI, Matroska, or MP4, and the resulting out-of-bounds writes contain input-controlled byte values.
Are single-core systems or configurations without slice threading affected?
The described flaw depends on slice threading being enabled. The provided information specifically identifies slice threading as the condition that allows the queued decoding job to run with mismatched picture geometry.
What can be done if upgrading is not immediately possible?
Avoid decoding untrusted MPEG-1/2 media with affected FFmpeg versions where slice threading is enabled. Disabling slice threading removes the stated triggering condition until an update can be applied.
Which FFmpeg releases include the fix?
The issue affects FFmpeg versions before 6.1.7, 7.1.6, 8.0.4, 8.1.4, 9.0.3, and 9.1. Upgrade to the applicable listed release or a later version.