CVE-2026-145314: High severity FFmpeg FFmpeg vulnerability

Published Dec 4, 2026
·
Updated

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

1 affected component
FFmpeg FFmpeg<6.1.7, <7.1.6, <8.0.4, <8.1.4, <9.0.3, <9.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.1.7
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.1.6
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.0.4
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.1.4
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.0.3
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.1

Event History

Dec 4, 2026
CVE Published
via MITRE·07:04 PM
Data Sourced
via MITRE·07:04 PM
DescriptionWeakness
Data Sourced
via OSV·07:04 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:19 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203