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
- 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.
Affected software
| Software | Affected versions |
|---|---|
FFmpegServers and applications · cpe:a:ffmpeg:ffmpeg |
|
About FFmpeg
multimedia framework
- 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
| Release | Latest | Security fixes |
|---|---|---|
| 9.0 'Lei' | 9.0.2 | Yes |
| 8.1 'Hoare' | 8.1.3 | Yes |
| 8.0 'Huffman' | 8.0.3 | Yes |
| 7.1 'Péter' (LTS)LTS | 7.1.5 | Yes |
| 7.0 'Dijkstra' | 7.0.3 | Ended 22 Jun 2026 |
| 6.1 'Heaviside' | 6.1.6 | Yes |
From endoflife.date.
Vulnerabilities in FFmpeg
- In our list
- 643
- Published in the last 12 months
- 171
- Critical, last 12 months
- 1
- High, last 12 months
- 62
- Known exploited
- 0
- CVE-2026-133519FFmpeg 7.0 through 9.0.2 Out-of-Bounds Read via dvdvideo_menu_next_ps_block()Medium 6.8 20 Nov 2026
- CVE-2026-125270FFmpeg through 9.0.2 Heap Out-of-Bounds Read in V4L2 M2M EncoderMedium 5.8 9 Nov 2026
- CVE-2026-125269FFmpeg through 9.0.2 Double Free via cbs_sei_delete_message in cbs_sei.cHigh 7.3 9 Nov 2026
- CVE-2026-125268FFmpeg through 9.0.2 Uninitialized Heap Memory Disclosure in CFHD DecoderMedium 4.8 9 Nov 2026
- CVE-2026-125267FFmpeg before 8.1.3 and 9.x before 9.0.2 Heap Out-of-Bounds Write via APAC DecoderHigh 8.5 9 Nov 2026
- CVE-2026-125266FFmpeg through 9.0.2 Uninitialized Stack Memory Disclosure via SANM Codec 23Medium 4.8 9 Nov 2026