CVE-2026-33416: libpng Use After Free
Vulnerability summary
CVE-2026-33416 is a high (CVSS 7.5) Use After Free vulnerability in libpng. EPSS estimates a 1.05% chance of exploitation in the next 30 days, higher than 63.7% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 46 · Related 14Timeline
- 26-03-2026PublishedVulnerability first disclosed.
- 01-04-2026Last modifiedVulnerability information updated.
Description
LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. In versions 1.2.1 through 1.6.55, `png_set_tRNS` and `png_set_PLTE` each alias a heap-allocated buffer between `png_struct` and `png_info`, sharing a single allocation across two structs with independent lifetimes. The `trans_alpha` aliasing has been present since at least libpng 1.0, and the `palette` aliasing since at least 1.2.1. Both affect all prior release lines `png_set_tRNS` sets `png_ptr->trans_alpha = info_ptr->trans_alpha` (256-byte buffer) and `png_set_PLTE` sets `info_ptr->palette = png_ptr->palette` (768-byte buffer). In both cases, calling `png_free_data` (with `PNG_FREE_TRNS` or `PNG_FREE_PLTE`) frees the buffer through `info_ptr` while the corresponding `png_ptr` pointer remains dangling. Subsequent row-transform functions dereference and, in some code paths, write to the freed memory. A second call to `png_set_tRNS` or `png_set_PLTE` has the same effect, because both functions call `png_free_data` internally before reallocating the `info_ptr` buffer. Version 1.6.56 fixes the issue.
CVSS metrics
8 scores · 8 sources · 1 version- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.05%
Chance of exploitation in the next 30 days
Percentile
64%
Versus all other CVEs
30-day change
0.00 pp
From 1.05% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundLibpng
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Redhat14 products
- libpng< 2:1.6.37-12.el9_7.4 | < 2:1.6.40-8.el10_1.4 | < 2:1.6.37-12.el9_6.4 | < 2:1.6.37-12.el9_4.4 | < 2:1.6.37-12.el9_2.4 | < 2:1.6.40-8.el10_0.4 | < 2:1.6.34-11.el8_10 | < 2:1.6.34-8.el8_8.3 | < 2:1.6.34-8.el8_6.3 | < 2:1.6.34-8.el8_4.3 | < 2:1.5.13-8.el7_9.3
- libpng-debuginfo< 2:1.6.37-12.el9_7.4 | < 2:1.6.40-8.el10_1.4 | < 2:1.6.37-12.el9_6.4 | < 2:1.6.37-12.el9_4.4 | < 2:1.6.37-12.el9_2.4 | < 2:1.6.40-8.el10_0.4 | < 2:1.6.34-11.el8_10 | < 2:1.6.34-8.el8_8.3 | < 2:1.6.34-8.el8_6.3 | < 2:1.6.34-8.el8_4.3 | < 2:1.5.13-8.el7_9.3
- libpng-debugsource< 2:1.6.37-12.el9_7.4 | < 2:1.6.40-8.el10_1.4 | < 2:1.6.37-12.el9_6.4 | < 2:1.6.37-12.el9_4.4 | < 2:1.6.37-12.el9_2.4 | < 2:1.6.40-8.el10_0.4 | < 2:1.6.34-11.el8_10 | < 2:1.6.34-8.el8_8.3 | < 2:1.6.34-8.el8_6.3 | < 2:1.6.34-8.el8_4.3
- libpng-devel< 2:1.6.37-12.el9_7.4 | < 2:1.6.40-8.el10_1.4 | < 2:1.6.37-12.el9_6.4 | < 2:1.6.37-12.el9_4.4 | < 2:1.6.37-12.el9_2.4 | < 2:1.6.40-8.el10_0.4 | < 2:1.6.34-11.el8_10 | < 2:1.6.34-8.el8_8.3 | < 2:1.6.34-8.el8_6.3 | < 2:1.6.34-8.el8_4.3 | < 2:1.5.13-8.el7_9.3
- libpng-devel-debuginfo< 2:1.6.37-12.el9_7.4 | < 2:1.6.40-8.el10_1.4 | < 2:1.6.37-12.el9_6.4 | < 2:1.6.37-12.el9_4.4 | < 2:1.6.37-12.el9_2.4 | < 2:1.6.40-8.el10_0.4 | < 2:1.6.34-11.el8_10 | < 2:1.6.34-8.el8_8.3 | < 2:1.6.34-8.el8_6.3 | < 2:1.6.34-8.el8_4.3
Suse14 products
- libpng16&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 1.6.34-150000.3.22.1
- libpng16&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 1.6.34-150000.3.22.1
- libpng16&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS< 1.6.34-150000.3.22.1
- libpng16&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS< 1.6.34-150000.3.22.1
- libpng16&distro=SUSE Linux Enterprise Micro 5.2< 1.6.34-150000.3.22.1
Ubuntu2 products
- libpng< 1.2.50-1ubuntu2.14.04.3+esm2 | < 1.2.54-1ubuntu1.1+esm3
- libpng1.6< 1.6.20-2ubuntu0.1~esm4 | < 1.6.34-1ubuntu0.18.04.2+esm3 | < 1.6.37-2ubuntu0.1~esm3 | < 1.6.37-3ubuntu0.5 | < 1.6.43-5ubuntu0.6 | < 1.6.50-1ubuntu0.5
Alpine1 product
- libpng≥ 1.2.1, < 1.6.56-r0
Chainguard1 product
- libpng< 1.6.56-r0
Debian1 product
- libpng1.6< 1.6.39-2+deb12u4 | < 1.6.48-1+deb13u4 | < 1.6.56-1
Libpng1 product
- libpng≥ 1.2.1, < 1.6.56
Pnggroup1 product
- libpng≥ 1.2.1, < 1.6.56
Wolfi1 product
- libpng< 1.6.56-r0
9 vendors · 36 products
References
69 links- github.com/pnggroup/libpng/security/advisories/GHSA-m4pc-p4q3-4c7jX Refsource CONFIRMARTICLEREPORTAdvisoryPatchVendor Advisory
- github.com/pnggroup/libpng/commit/23019269764e35ed8458e517f1897bd3c54820ebX Refsource MISCARTICLEFIXPatch
- github.com/pnggroup/libpng/commit/7ea9eea884a2328cc7fdcb3c0c00246a50d90667X Refsource MISCARTICLEFIXPatch
- github.com/pnggroup/libpng/commit/a3a21443ed12bfa1ef46fa0d4fb2b74a0fa34a25X Refsource MISCARTICLEFIXPatch
- github.com/pnggroup/libpng/commit/c1b0318b393c90679e6fa5bc1d329fd5d5012ec1X Refsource MISCARTICLEFIXPatch