FFmpeg: Out-of-bounds memory access in huffyuvenc (CVE-2026-125229)
FFmpeg versions through 9.0.2 contain an out-of-bounds memory access vulnerability in the encode_frame function that can be triggered by processing malformed video frames, potentially resulting in application crashes or memory corruption.
CVE search metadata
CVE search record: CVE-2026-125229. Severity: high. CVSS: 7.8. KEV: no. Product: FFmpeg (<= 9.0.2). Brief: FFmpeg: Out-of-bounds memory access in huffyuvenc (CVE-2026-125229). Brief link: https://feed.craftedsignal.io/briefs/2026-11-ffmpeg-oob-access/
Triage facts
Revision 1- Applicability
- FFmpeg (<= 9.0.2)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 10, 02:01 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Roughly even chance
FFmpeg through version 9.0.2 contains an out-of-bounds memory access vulnerability in the encode_frame() function within libavcodec/huffyuvenc.c. The vulnerability exists because encode_init() fails to validate minimum frame dimensions when using the median predictor. An attacker can supply a specially crafted video file with undersized dimensions, such as frames that are 2 pixels wide or 1 to 2 pixels tall, which triggers negative sub_median_pred lengths and subsequent out-of-bounds memory operations during transcoding to huffyuv or ffvhuff.
Impact
Successful exploitation may result in an application crash, causing a denial of service for any process utilizing the vulnerable FFmpeg library for video transcoding. The nature of the out-of-bounds read and write operations also presents a risk of memory corruption.
Recommendation
- Audit systems for applications that utilize the FFmpeg library for video transcoding, particularly those that accept user-provided video files.
- Monitor for and apply updates to FFmpeg once a security patch addressing CVE-2026-125229 is released by the maintainers.
- Implement input validation on applications using FFmpeg to reject video files with dimensions below standard expected thresholds until the library can be updated.
Immediate actions
Inventory all software deployments that include FFmpeg binary or shared libraries
Threat Hunt
Identify processes utilizing ffmpeg that terminate unexpectedly when processing untrusted video files
Data: OS application crash logs (e.g., Windows Event ID 1000, Linux auditd/syslog for segfaults)
Mitigations
Apply security patches or update to the latest version of FFmpeg as soon as released
CVE-2026-125229