BreachSpiderVerified, not vibes

CVE-2026-33416 in Libpng

High 7.5

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 tw...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS0.6%
EPSS percentile44th
FixUnknown

Remotely exploitable over the network, high complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Libpng Libpng ≥ 1.2.1, < 1.6.56

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-33416
BreachSpider IDBS-2026-GLOBAL-150928-H
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Published2026-03-26
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-416: Use After Free

Software references memory after it has been freed, leading to corruption, crashes, or code execution.

Analysis AI-written, not human-reviewed

CVE-2026-33416 affects LIBPNG versions 1.2.1 through 1.6.55, where `png_set_tRNS` and `png_set_PLTE` functions improperly alias a heap-allocated buffer, leading to potential memory corruption.

An attacker could exploit this vulnerability by crafting a malicious PNG file that, when processed by an application using the affected LIBPNG versions, could lead to memory corruption. This could result in arbitrary code execution or denial of service.

Questions

What is CVE-2026-33416?

CVE-2026-33416 affects LIBPNG versions 1.2.1 through 1.6.55, where `png_set_tRNS` and `png_set_PLTE` functions improperly alias a heap-allocated buffer, leading to potential memory corruption.

What is the CVSS score for CVE-2026-33416?

CVE-2026-33416 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.6%.

Is CVE-2026-33416 actively exploited?

No confirmed active exploitation of CVE-2026-33416 as of 2026-09-25.

How do I remediate CVE-2026-33416?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2026-33416?

CVE-2026-33416 affects Libpng Libpng.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Libpng","product":"Libpng","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.