Description
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, causing memcpy() to write pixel data past the stale reference frame and crash applications.
Published: 2026-11-09
Score: 7.3 High
EPSS: n/a
KEV: No
Impact: Heap Buffer Overflow allowing memory corruption
Action: Assess Impact
AI Analysis

Impact

FFmpeg through version 9.0.2 contains a heap buffer overflow in ff_libwebp_get_frame() inside libwebpenc_common.c. When the cr_threshold parameter is set and a media stream raises the resolution mid‑stream, a memcpy() writes pixel data past the stale reference frame. This corrupts memory and can crash the application, and if an attacker can supply a carefully crafted payload it could lead to arbitrary code execution.

Affected Systems

All installations of FFmpeg version 9.0.2 or earlier are affected. Any software that embeds FFmpeg and uses the libwebp encoder for processing media will be vulnerable, including media conversion tools, streaming servers, or any application that decodes or encodes WebP images.

Risk and Exploitability

The CVSS score of 7.3 indicates a high severity vulnerability. The EPSS score is not available, and the issue is not listed in CISA's KEV catalog. The likely attack vector is delivering a malicious media file to an application that uses the libwebp encoder; no local privilege escalation is required. Exploitability is low to moderate, but the impact on confidentiality, integrity, or availability is significant due to potential memory corruption and denial of service.

Generated by OpenCVE AI on November 9, 2026 at 22:04 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to version 9.0.3 or later, which contains the fixed buffer handling code.
  • If an upgrade cannot be performed immediately, reconfigure the application to disable or remove the libwebp encoder path or revert to a version of FFmpeg known to be safe.
  • Add runtime validation to ensure that frame sizes and resolution changes never exceed the allocated buffer and reject malformed media files before they reach the encoder.

Generated by OpenCVE AI on November 9, 2026 at 22:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 19:15:00 +0000

Type Values Removed Values Added
Description 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, causing memcpy() to write pixel data past the stale reference frame and crash applications.
Title FFmpeg through 9.0.2 Heap Buffer Overflow in libwebp Encoder Conditional Replenishment
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-122
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.3, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-09T19:11:22.871Z

Reserved: 2026-11-09T18:15:13.251Z

Link: CVE-2026-125204

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T19:16:56.890

Modified: 2026-11-09T19:16:56.890

Link: CVE-2026-125204

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T23:45:16Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow