All vulnerabilities

Servers and applications

CVE-2026-66040

FFmpeg through 8.1.2, fixed in commit b506faf, contains a heap out-of-bounds write vulnerability in the native PNG and APNG encoders that allows remote attackers to corrupt heap memory by supplying a crafted PNG image with a malicious eXIf chunk. Attackers can craft an eXIf chunk where multiple IFD entries reference the same large value payload, causing canonical serialization to expand the…

Severity
High 8.7
Published
24 Jul 2026
Last changed
7 Aug 2026
Added to UpHeron
1 Nov 2026
Exploit chance
0.8% in the next 30 daysHigher than 56% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Heap-based buffer overflow (CWE-122)
Attack
Over the network · No login needed · Needs someone to view a page or file
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Sources
NVD

Description

FFmpeg through 8.1.2, fixed in commit b506faf, contains a heap out-of-bounds write vulnerability in the native PNG and APNG encoders that allows remote attackers to corrupt heap memory by supplying a crafted PNG image with a malicious eXIf chunk. Attackers can craft an eXIf chunk where multiple IFD entries reference the same large value payload, causing canonical serialization to expand the output far beyond the undersized allocation estimated by add_exif_profile_size(), resulting in png_write_chunk() writing tens of thousands of bytes past the buffer boundary, leading to deterministic heap corruption, process crash, and potentially arbitrary code execution.

From NVD.

Affected software

SoftwareAffected versions
FFmpegServers and applications · cpe:a:ffmpeg:ffmpeg
  • Every version up to 8.1.2

About FFmpeg

multimedia framework

From Wikidata, CC0 1.0.
GitHub stars
67,332GitHub, 15 Nov 2026
Forks
14,646GitHub, 15 Nov 2026
Developer
Fabrice BellardWikidata
License
GNU Lesser General Public License, version 2.1 or laterWikidata
Written in
C, assembly language, C++Wikidata
First released
20 Dec 2000Wikidata
First published on GitHub
14 Apr 2011GitHub

Release lines

ReleaseLatestSecurity fixes
9.0 'Lei'9.0.2Yes
8.1 'Hoare'8.1.3Yes
8.0 'Huffman'8.0.3Yes
7.1 'Péter' (LTS)LTS7.1.5Yes
7.0 'Dijkstra'7.0.3Ended 22 Jun 2026
6.1 'Heaviside'6.1.6Yes

From endoflife.date.

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-66040
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-66040