{"id":"CVE-2026-125204","title":"FFmpeg through 9.0.2 Heap Buffer Overflow in libwebp Encoder Conditional Replenishment","summary":"FFmpeg through 9.0.2 contains a heap buffer overflow in ff_libwebp_get_frame() in libwebpenc_common.c that lets attackers corrupt memory when cr_threshold is set. Attackers can supply crafted media that increases resolution mid-stream, c…","severity":"high","cvss":7,"cvssVector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","cvssSource":"cna","cwe":["CWE-122"],"vendor":"FFmpeg","product":"FFmpeg","affected":["FFmpeg <= 9.0.2"],"published":"2026-11-09","updated":"2026-11-09","sourceUpdated":"2026-11-09T19:11:22.871Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-125204","references":[{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25682"},{"url":"https://github.com/FFmpeg/FFmpeg/commit/9b99973b2bbecee0b7e1e57035b95498b42f54a6","label":"Patch Commit"},{"url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/libwebpenc_common.c#L230"},{"url":"https://github.com/FFmpeg/FFmpeg"},{"url":"https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-in-libwebp-encoder-conditional-replenishment","label":"VulnCheck Advisory: FFmpeg through 9.0.2 Heap Buffer Overflow in libwebp Encoder Conditional Replenishment"}],"tags":["cve.org"],"ingestedAt":"2026-11-09T19:18:02.599Z","slug":"CVE-2026-125204","body":"## Overview\n\nFFmpeg through 9.0.2 contains a heap buffer overflow in ff_libwebp_get_frame() in libwebpenc_common.c that lets attackers corrupt memory when cr_threshold is set. Attackers can supply crafted media that increases resolution mid-stream, causing memcpy() to write pixel data past the stale reference frame and crash applications.\n\n## Affected\n\n- `FFmpeg <= 9.0.2`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"twilight","depthScore":39,"depthScoreParts":{"impact":38.5,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}