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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"ffmpeg:ffmpeg": [
"<= 9.0.2"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125229",
"id": "CVE-2026-125229",
"imported": "2026-12-02T20:13:53.437Z",
"modified": "2026-11-30T16:19:56.887Z",
"published": "2026-11-09T19:17:00.700Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-125229"
},
{
"html_url": "https://github.com/advisories/GHSA-fvv9-x4pm-v3vq",
"id": "GHSA-fvv9-x4pm-v3vq",
"imported": "2026-12-02T20:14:25.191Z",
"modified": "2026-11-09T21:32:00Z",
"published": "2026-11-09T21:31:59Z",
"url": "https://api.github.com/advisories/GHSA-fvv9-x4pm-v3vq"
},
{
"affected": {
"FFMPEG:FFmpeg": [
"0 ≤9.0.2"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-120179",
"id": "EUVD-2026-120179",
"imported": "2026-12-02T20:13:54.646Z",
"modified": "2026-11-14T02:06:46Z",
"published": "2026-11-09T19:11:41Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-120179"
}
]
}