CVE-2026-125229
CVE-2026-125229 · FFmpeg through 9.0.2 Out-of-Bounds Memory Access in Huffyuv/FFVHUFF Median Predictor
CVSS 8.5 · High · EPSS 0.2% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- ffmpegNo fix published
- ffmpeg Alpine 3.24Update to 8.1.4-r0
- ffmpeg Debian 12No fix published
- ffmpeg Debian 13No fix published
- and 8 more
Check the installed version:
apk list -I -o ffmpegdpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ffmpeg"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Stack: system
Affected products and versions
ffmpeg
- Versions
- ≥ 0, ≤ 9.0.2: Affected (semver)
No fix published
ffmpeg Alpine 3.24
- Affected ranges
- ECOSYSTEM: < 8.1.4-r0
Update to 8.1.4-r0
ffmpeg Debian 12
- Versions
- 7:5.1.3-1
- 7:5.1.3-2
- 7:5.1.4-0+deb12u1
- 7:5.1.5-0+deb12u1
- 7:5.1.6-0+deb12u1
- 7:5.1.7-0+deb12u1
All versions (68)
- 7:5.1.8-0+deb12u1
- 7:5.1.9-0+deb12u1
- 7:6.0-1
- 7:6.0-2
- 7:6.0-3
- 7:6.0-4
- 7:6.0-5
- 7:6.0-6
- 7:6.0-7
- 7:6.0-8
- 7:6.0-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- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ffmpeg Debian 14
- Versions
- 7:7.1.1-1
- 7:7.1.2-1
- 7:7.1.3-1
- 7:8.0-1
- 7:8.0-2
- 7:8.0.1-1
All versions (28)
- 7:8.0.1-2
- 7:8.0.1-3
- 7:8.1-1
- 7:8.1-2
- 7:8.1-3
- 7:8.1.1-1
- 7:8.1.1-2
- 7:8.1.1-3
- 7:8.1.1-4
- 7:8.1.2-1
- 7:8.1.2-2
- 7:9.0-1
- 7:9.0.1-1
- 7:9.0.2-1
- 7:9.0.2-2
- 7:9.0.2-3
- 7:9.0.2-4
- 7:9.0.2-5
- 7:9.0.2-6
- 7:9.1-1
- 7:9.1-2
- 7:9.1-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ffmpeg Ubuntu Pro 16.04 LTS
- Versions
- 7:2.7.2-1build1
- 7:2.8.1-1ubuntu1
- 7:2.8.2-1ubuntu1
- 7:2.8.3-1
- 7:2.8.4-1
- 7:2.8.4-1ubuntu1
All versions (36)
- 7:2.8.4-1ubuntu2
- 7:2.8.4-1ubuntu3
- 7:2.8.4-1ubuntu4
- 7:2.8.6-1ubuntu1
- 7:2.8.6-1ubuntu2
- 7:2.8.8-0ubuntu0.16.04.1
- 7:2.8.10-0ubuntu0.16.04.1
- 7:2.8.11-0ubuntu0.16.04.1
- 7:2.8.14-0ubuntu0.16.04.1
- 7:2.8.15-0ubuntu0.16.04.1
- 7:2.8.15-0ubuntu0.16.04.1+esm1
- 7:2.8.17-0ubuntu0.1
- 7:2.8.17-0ubuntu0.1+esm1
- 7:2.8.17-0ubuntu0.1+esm2
- 7:2.8.17-0ubuntu0.1+esm3
- 7:2.8.17-0ubuntu0.1+esm4
- 7:2.8.17-0ubuntu0.1+esm5
- 7:2.8.17-0ubuntu0.1+esm6
- 7:2.8.17-0ubuntu0.1+esm7
- 7:2.8.17-0ubuntu0.1+esm8
- 7:2.8.17-0ubuntu0.1+esm9
- 7:2.8.17-0ubuntu0.1+esm10
- 7:2.8.17-0ubuntu0.1+esm11
- 7:2.8.17-0ubuntu0.1+esm12
- 7:2.8.17-0ubuntu0.1+esm13
- 7:2.8.17-0ubuntu0.1+esm14
- 7:2.8.17-0ubuntu0.1+esm15
- 7:2.8.17-0ubuntu0.1+esm16
- 7:2.8.17-0ubuntu0.1+esm17
- 7:2.8.17-0ubuntu0.1+esm18
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ffmpeg Ubuntu Pro 18.04 LTS
- Versions
- 7:3.3.4-2
- 7:3.3.4-2build3
- 7:3.4-2ubuntu2
- 7:3.4-4
- 7:3.4-4build1
- 7:3.4.1-1
All versions (30)
- 7:3.4.1-1build1
- 7:3.4.2-1
- 7:3.4.2-1build1
- 7:3.4.2-2
- 7:3.4.4-0ubuntu0.18.04.1
- 7:3.4.6-0ubuntu0.18.04.1
- 7:3.4.8-0ubuntu0.2
- 7:3.4.11-0ubuntu0.1
- 7:3.4.11-0ubuntu0.1+esm1
- 7:3.4.11-0ubuntu0.1+esm2
- 7:3.4.11-0ubuntu0.1+esm3
- 7:3.4.11-0ubuntu0.1+esm4
- 7:3.4.11-0ubuntu0.1+esm5
- 7:3.4.11-0ubuntu0.1+esm6
- 7:3.4.11-0ubuntu0.1+esm7
- 7:3.4.11-0ubuntu0.1+esm8
- 7:3.4.11-0ubuntu0.1+esm9
- 7:3.4.11-0ubuntu0.1+esm10
- 7:3.4.11-0ubuntu0.1+esm11
- 7:3.4.11-0ubuntu0.1+esm12
- 7:3.4.11-0ubuntu0.1+esm13
- 7:3.4.11-0ubuntu0.1+esm14
- 7:3.4.11-0ubuntu0.1+esm15
- 7:3.4.11-0ubuntu0.1+esm16
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ffmpeg Ubuntu Pro 20.04 LTS
- Versions
- 7:4.1.4-1build2
- 7:4.2.1-2
- 7:4.2.1-2ubuntu1
- 7:4.2.2-1build1
- 7:4.2.2-1ubuntu1
- 7:4.2.4-1ubuntu0.1
All versions (26)
- 7:4.2.4-1ubuntu0.1+esm1
- 7:4.2.7-0ubuntu0.1
- 7:4.2.7-0ubuntu0.1+esm1
- 7:4.2.7-0ubuntu0.1+esm2
- 7:4.2.7-0ubuntu0.1+esm3
- 7:4.2.7-0ubuntu0.1+esm4
- 7:4.2.7-0ubuntu0.1+esm5
- 7:4.2.7-0ubuntu0.1+esm6
- 7:4.2.7-0ubuntu0.1+esm7
- 7:4.2.7-0ubuntu0.1+esm8
- 7:4.2.7-0ubuntu0.1+esm9
- 7:4.2.7-0ubuntu0.1+esm10
- 7:4.2.7-0ubuntu0.1+esm11
- 7:4.2.7-0ubuntu0.1+esm12
- 7:4.2.7-0ubuntu0.1+esm13
- 7:4.2.7-0ubuntu0.1+esm14
- 7:4.2.7-0ubuntu0.1+esm15
- 7:4.2.7-0ubuntu0.1+esm16
- 7:4.2.7-0ubuntu0.1+esm17
- 7:4.2.7-0ubuntu0.1+esm18
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ffmpeg Ubuntu Pro 22.04 LTS
- Versions
- 7:4.4-6ubuntu5
- 7:4.4.1-2ubuntu1
- 7:4.4.1-3ubuntu1
- 7:4.4.1-3ubuntu2
- 7:4.4.1-3ubuntu3
- 7:4.4.1-3ubuntu5
All versions (24)
- 7:4.4.2-0ubuntu0.22.04.1
- 7:4.4.2-0ubuntu0.22.04.1+esm1
- 7:4.4.2-0ubuntu0.22.04.1+esm2
- 7:4.4.2-0ubuntu0.22.04.1+esm3
- 7:4.4.2-0ubuntu0.22.04.1+esm4
- 7:4.4.2-0ubuntu0.22.04.1+esm5
- 7:4.4.2-0ubuntu0.22.04.1+esm6
- 7:4.4.2-0ubuntu0.22.04.1+esm7
- 7:4.4.2-0ubuntu0.22.04.1+esm8
- 7:4.4.2-0ubuntu0.22.04.1+esm9
- 7:4.4.2-0ubuntu0.22.04.1+esm10
- 7:4.4.2-0ubuntu0.22.04.1+esm11
- 7:4.4.2-0ubuntu0.22.04.1+esm12
- 7:4.4.2-0ubuntu0.22.04.1+esm13
- 7:4.4.2-0ubuntu0.22.04.1+esm14
- 7:4.4.2-0ubuntu0.22.04.1+esm15
- 7:4.4.2-0ubuntu0.22.04.1+esm16
- 7:4.4.2-0ubuntu0.22.04.1+esm17
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ffmpeg Ubuntu Pro 24.04 LTS
- Versions
- 7:6.0-6ubuntu1
- 7:6.0-9ubuntu1
- 7:6.1-2ubuntu1
- 7:6.1-3ubuntu1
- 7:6.1-4ubuntu1
- 7:6.1-5ubuntu1
All versions (22)
- 7:6.1.1-1ubuntu1
- 7:6.1.1-3ubuntu1
- 7:6.1.1-3ubuntu5
- 7:6.1.1-3ubuntu5+esm1
- 7:6.1.1-3ubuntu5+esm2
- 7:6.1.1-3ubuntu5+esm3
- 7:6.1.1-3ubuntu5+esm4
- 7:6.1.1-3ubuntu5+esm5
- 7:6.1.1-3ubuntu5+esm6
- 7:6.1.1-3ubuntu5+esm7
- 7:6.1.1-3ubuntu5+esm8
- 7:6.1.1-3ubuntu5+esm10
- 7:6.1.1-3ubuntu5+esm11
- 7:6.1.1-3ubuntu5+esm12
- 7:6.1.1-3ubuntu5+esm13
- 7:6.1.1-3ubuntu5+esm15
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ffmpeg Ubuntu 26.10
- Versions
- 7:8.0.1-3ubuntu2
- 7:8.1-3ubuntu3
- 7:8.1.2-2ubuntu2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ffmpeg Ubuntu Pro 26.04 LTS
- Versions
- 7:7.1.1-1ubuntu4
- 7:7.1.2-1ubuntu3
- 7:7.1.2-1ubuntu4
- 7:7.1.3-1ubuntu1
- 7:8.0.1-2ubuntu1
- 7:8.0.1-3ubuntu1
All versions (11)
- 7:8.0.1-3ubuntu2
- 7:8.0.1-3ubuntu2+esm1
- 7:8.0.1-3ubuntu2+esm3
- 7:8.0.1-3ubuntu2+esm4
- 7:8.0.1-3ubuntu2+esm5
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25573
- https://github.com/FFmpeg/FFmpeg/commit/45f98d0819efe2b7ce93e9034b7e6a4ed6700621
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/huffyuvenc.c#L762
- https://github.com/FFmpeg/FFmpeg
- https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-out-of-bounds-memory-access-in-huffyuv-ffvhuff-median-predictor
- https://nvd.nist.gov/vuln/detail/CVE-2026-125229