CVE-2026-34757: LIBPNG - Use After Free
- Cve: CVE-2026-34757
- Name: LIBPNG - Use After Free
- Description: LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From 1.0.9 to before 1.6.57, passing a pointer obtained from png_get_PLTE, png_get_tRNS, or png_get_hIST back into the corresponding setter on the same png_struct/png_info pair causes the setter to read from freed memory and copy its contents into the replacement buffer. The setter frees the internal buffer before copying from the caller-supplied pointer, which now dangles. The freed region may contain stale data (producing silently corrupted chunk metadata) or data from subsequent heap allocations (leaking unrelated heap contents into the chunk struct). This vulnerability is fixed in 1.6.57.
- Impact: Attackers can cause memory corruption or leak unrelated heap data, potentially leading to application instability or information disclosure.
- Remediation: Update to version 1.6.57 or later.
- Vulnerability type: use_after_free
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.4
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Epss score: 0.00199
- Epss percentile: 0.09603
- Assignee: [email protected]
- Published at: 2026-04-09T15:16:11Z
- Age in days: 228
- Modified at: 2026-10-26T21:10:00Z
- Patch available: yes
- Public exploits total: 2
- References total: 6
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-34757
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-416 | Use After Free |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/pnggroup/libpng/issues/836 | nvd | 2026-04-09 |
| https://github.com/pnggroup/libpng/issues/837 | nvd | 2026-04-09 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/pnggroup/libpng/commit/398cbe3df03f4e11bb031e07f416dfdde3684e8a | Patch |
| https://github.com/pnggroup/libpng/commit/55d20aaa322c9274491cda82c5cd4f99b48c6bcc | Patch |
| https://github.com/pnggroup/libpng/security/advisories/GHSA-6fr7-g8h7-v645 | Mitigation, Patch, Vendor Advisory |
| https://github.com/pnggroup/libpng/issues/836 | Exploit, Issue Tracking, Mitigation |
| https://github.com/pnggroup/libpng/issues/837 | Exploit, Issue Tracking, Mitigation |
| https://lists.debian.org/debian-lts-announce/2026/05/msg00017.html | Mailing List, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| libpng:libpng | >= 1.0.9, < 1.6.57 | no | nvd | /v1/products/libpng/libpng |
| debian:debian_linux | = 11.0 | no | nvd | /v1/products/debian/debian_linux |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pnggroup/libpng | commit, fix, issues, security_advisory | yes | /v1/repositories/pnggroup/libpng |
Index
- Repositories: 4567
- Repositories high signal: 3063
- Checked, none or zero: packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2026-04-09
- Authentication required: yes
- Exposed hosts: 4706702
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports