CVE-2026-40930 Details
Description
LIBPNG is a reference library for use in applications that process PNG (Portable Network Graphics) raster image files. In version 1.8.0, three inter-frame chunk discard paths in the push-mode APNG parser clear the chunk-header flag without consuming the chunk body and CRC, allowing attacker-controlled bytes inside an ignored ancillary chunk to be reinterpreted as a fresh chunk header on the next call to `png_process_data`. Commit faf06924688b62d7c1654b5ceddedbde66ffadb4 fixes the issue.
A chunk-smuggling vulnerability has been identified in the push-mode APNG parser of libpng version 1.8.0. This issue arises from three inter-frame chunk discard paths that clear the chunk-header flag without properly consuming the chunk body and CRC. As a result, attacker-controlled bytes within an ignored ancillary chunk can be misinterpreted as a new chunk header during the next call to 'png_process_data'. The vulnerability allows smuggled data to reach the APNG sequence counter and the zlib decompressor, where it is decoded as frame pixel data. While this does not lead to code execution, it allows for the manipulation of rendered images. The vulnerability is present in downstream applications that use the libpng-apng patch, including Firefox, Thunderbird, and several Linux distributions. The impact varies depending on the application's CRC error handling configuration, with the default setting causing a denial-of-service by rejecting the malformed data, and a relaxed setting allowing the smuggled data to be processed as image content.
The vulnerability has been fixed in the libpng18 development branch at commit 'faf06924688b62d7c1654b5ceddedbde66ffadb4'. Downstream consumers of the libpng-apng patch applied to libpng 1.6.x should update to libpng-1.6.57-apng.patch v2 or libpng-1.6.58-apng.patch, both available on SourceForge. Those using Firefox or Thunderbird should ensure they are on a version that includes the patched libpng.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-436 | Interpretation Conflict | [email protected] |
Affected Products
No affected product data is available for this CVE.
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 4, 2026 | New CVE Received | [email protected] |
| Jun 4, 2026 | CVE Modified | CVE |