CVE-2026-125229: FFmpeg through 9.0.2 Out-of-Bounds Memory Access in Huffyuv/FFVHUFF Median Predictor

Published Nov 9, 2026
·
Updated

FFmpeg through 9.0.2 contains an out-of-bounds memory access vulnerability in the encodeframe() function of libavcodec/huffyuvenc.c, because encodeinit() never validates minimum frame dimensions for the median predictor. Attackers can supply a tiny video, such as a 2-pixel-wide or 1-2-pixel-tall frame, that causes negative submedianpred lengths and out-of-bounds reads and writes when transcoded to huffyuv or ffvhuff, crashing the encoder.

Affected Software

14 affected componentsFixes available
FFmpeg FFmpeg<=9.0.2
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
FFmpeg FFmpeg<=9.0.2
alpine/ffmpeg<8.1.4-r0
8.1.4-r0
debian/ffmpeg<=7:5.1.9-0+deb12u1, <=7:7.1.5-0+deb13u1, <=7:9.0.2-6
7:7.1.6-0+deb13u17:9.1-3
debian/ffmpeg*
debian/ffmpeg<7:7.1.6-0+deb13u1
7:7.1.6-0+deb13u1
debian/ffmpeg*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/ffmpeg to a version that resolves this vulnerability.

    Fixed in 8.1.4-r0
  2. Upgrade

    Upgrade debian/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:7.1.6-0+deb13u1Fixed in 7:9.1-3
  3. Upgrade

    Upgrade debian/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:7.1.6-0+deb13u1

Event History

Nov 9, 2026
CVE Published
via MITRE·07:11 PM
Data Sourced
via MITRE·07:11 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness
Event
via NVD·07:17 PM
Nov 12, 2026
Updated
via OSV·05:25 PM
Severity
Nov 15, 2026
Data Sourced
via OSV·07:00 PM
Affected Software
Nov 30, 2026
Data Sourced
via NVD·04:19 PM
RemedyAffected Software
Dec 5, 2026
Updated
via OSV·05:08 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

Which workflows are exposed to this issue?

Workflows that transcode attacker-controlled or otherwise unusually small video frames to the huffyuv or ffvhuff encoder are exposed. The vulnerable path is in FFmpeg's encoder, not merely in decoding or playback.

2

What input is needed to trigger the vulnerability?

An attacker needs to cause transcoding of a tiny video frame using the median predictor, such as a frame that is 2 pixels wide or 1–2 pixels tall. User interaction is required according to the supplied vector.

3

What is the likely impact of successful exploitation?

The malformed dimensions cause negative sub_median_pred lengths and out-of-bounds reads and writes in encode_frame(). This can crash the encoder; the provided severity vector also rates confidentiality, integrity, and availability impacts as high.

4

What can be done while patching is unavailable?

Avoid transcoding untrusted tiny videos to huffyuv or ffvhuff, and reject or normalize frames that are 2 pixels wide or 1–2 pixels tall before they reach these encoders.

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