Description
A flaw has been found in pnggroup libpng up to 1.6.55. Affected by this vulnerability is the function do_pnm2png of the file contrib/pngminus/pnm2png.c of the component pnm2png. This manipulation of the argument width/height causes heap-based buffer overflow. The attack is restricted to local execution. The exploit has been published and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pnggroup | libpng | 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8, 1.6.9, 1.6.10, 1.6.11, 1.6.12, 1.6.13, 1.6.14, 1.6.15, 1.6.16, 1.6.17, 1.6.18, 1.6.19, 1.6.20, 1.6.21, 1.6.22, 1.6.23, 1.6.24, 1.6.25, 1.6.26, 1.6.27, 1.6.28, 1.6.29, 1.6.30, 1.6.31, 1.6.32, 1.6.33, 1.6.34, 1.6.35, 1.6.36, 1.6.37, 1.6.3… | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libpng1.6 | No fix yet | — |
| Debian 13 | libpng1.6 | No fix yet | — |
| Debian 12 | libpng1.6 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | libpng | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | libpng +3 | 1.6.56-1.hum1 | RHSA-2026:6732 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | libpng +4 | No fix yet | — |
| Azure Linux 2 (CBL-Mariner) | libpng +3 | No fix yet | — |
Advisories 2
- RHSA-2026:6732 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- WID-SEC-2026-0638 libpng: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Sep 13, 2026
References
- VDB-349658 | pnggroup libpng pnm2png pnm2png.c do_pnm2png heap-based overflow vdb-entry technical-description
- VDB-349658 | CTI Indicators (IOB, IOC, IOA) signature permissions-required
- Submit #761996 | libpng pnm2png 1.8.0 Integer Overflow to Buffer Overflow third-party-advisory
- https://github.com/pnggroup/libpng/issues/794 issue-tracking
- https://github.com/biniamf/pocs/tree/main/pnm2png exploit
- https://github.com/pnggroup/libpng/ product