PT-2026-64416 · FFmpeg · Ffmpeg

·

CVE-2026-66040

·

Published

2026-07-24

·

Updated

2026-08-07

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions FFmpeg versions prior to 8.1.2
Description A heap out-of-bounds write exists in the native PNG and APNG encoders. A remote attacker can corrupt heap memory by providing a crafted PNG image containing a malicious eXIf chunk. By creating an eXIf chunk where multiple IFD (Image File Directory) entries reference the same large value payload, the canonical serialization expands the output beyond the allocation estimated by the add exif profile size() function. This causes the png write chunk() function to write data past the buffer boundary, leading to deterministic heap corruption, process crashes, and potentially arbitrary code execution.
Recommendations Update to the version containing commit b506faf.

Exploit

Fix

Heap Based Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-66040
ECHO-191B-44FE-7772
JLSEC-2026-1186

Affected Products

Ffmpeg