All reports
High

ffmpeg: out-of-bounds memory access in Huffyuv/FFVHUFF median predictor

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-125229

Probability of exploitation in the next 30 days: 0.13%

FIRST EPSS · 2026-11-21

Description

FFmpeg through 9.0.2 contains an out-of-bounds memory access vulnerability in the encode_frame() function of libavcodec/huffyuvenc.c, because encode_init() 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 sub_median_pred lengths and out-of-bounds reads and writes when transcoded to huffyuv or ffvhuff, crashing the encoder.

A flaw was found in FFmpeg. An out-of-bounds write can occur in the HEVC (H.265) decoder when decoding a specially crafted HEVC video file due to a missing validation of minimum frame dimensions for the median predictor. This vulnerability can lead to memory corruption, potentially resulting in an application crash or arbitrary code execution.