CVE-2026-125218

published 9 Nov 2026 · updated 13 Nov 2026

FFmpeg through 9.0.2 APNG Encoder Heap Buffer Overflow via encode_apng()

7.0HighCVSS 7.0EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

FFmpeg through 9.0.2 contains a heap buffer overflow vulnerability in the APNG encoder's encode_apng() function in libavcodec/pngenc.c when frame size changes mid-stream. Attackers can supply crafted media whose resolution grows mid-stream, causing APNG_DISPOSE_OP_BACKGROUND memset writes past prev_frame and crashing or corrupting heap memory in transcoding applications.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ffmpeg<=9.0.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-125218 severity on Zeptric[![CVE-2026-125218](https://zeptric.io/badge/cve/CVE-2026-125218.svg)](https://zeptric.io/cve/CVE-2026-125218)