CVE-2026-73639Imager::File::PNG versions from 1.003 before 1.004 for Perl write past the end of the…
Imager::File::PNG versions from 1.003 before 1.004 for Perl write past the end of the row buffer reading a PNG with a tRNS transparency chunk in read_direct8. With a tRNS chunk, read_direct8() adds an alpha channel to the image it creates but still sizes the row buffer from the original channel count. libpng expands the transparency into that extra channel, so png_read_row() fills one channel more than the buffer holds, at one byte per sample, and writes width bytes past the end of the allocation. Palette images go to read_paletted() and 16-bit images to read_direct16(), which sizes its buffer from png_get_rowbytes() and allocates enough for the expanded row. The same reader ships bundled in the Imager distribution. Reading an attacker-supplied PNG through Imager->read() corrupts the heap, which can crash the process.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libimager-perl | Fix pending | UBUNTU-CVE-2026-73639 | |
| Ubuntu 26.04 | libimager-perl | Under investigation | UBUNTU-CVE-2026-73639 | |
| Ubuntu 24.04 | libimager-perl | Under investigation | UBUNTU-CVE-2026-73639 | |
| Ubuntu 22.04 | libimager-perl | Under investigation | UBUNTU-CVE-2026-73639 | |
| Ubuntu 20.04 | libimager-perl | Fix pending | UBUNTU-CVE-2026-73639 | |
| Ubuntu 18.04 | libimager-perl | Fix pending | UBUNTU-CVE-2026-73639 | |
| Ubuntu 16.04 | libimager-perl | Fix pending | UBUNTU-CVE-2026-73639 | |
| Debian 14 | libimager-perl | Fixed | 1.035+dfsg-1 | DEBIAN-CVE-2026-73639 |
| Debian 13 | libimager-perl | Fix pending | DEBIAN-CVE-2026-73639 | |
| Debian 12 | libimager-perl | Fix pending | DEBIAN-CVE-2026-73639 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Imager-File-PNG: affected: 1.003 to before 1.004; fixed in
1.004 - Imager: affected: 1.034 to before 1.035; fixed in
1.035
Solution: Upgrade to Imager-File-PNG 1.004 or later, or to Imager 1.035 or later if the bundled copy is in use.
Vendor advisories:
- https://github.com/tonycoz/imager/security/advisories/GHSA-jhx5-34j8-9g88 (vendor-advisory)
- https://github.com/tonycoz/imager/commit/d973bd7e8843f084e8071caa24b89545c88b1e4b.patch (patch)
- https://metacpan.org/release/TONYC/Imager-File-PNG-1.004/changes (release-notes)
- https://metacpan.org/release/TONYC/Imager-1.035/changes (release-notes)
References
- https://github.com/tonycoz/imager/security/advisories/GHSA-jhx5-34j8-9g88
- https://github.com/tonycoz/imager/commit/d973bd7e8843f084e8071caa24b89545c88b1e4b.patch
- https://github.com/tonycoz/imager/pull/567
- https://metacpan.org/release/TONYC/Imager-File-PNG-1.004/changes
- https://metacpan.org/release/TONYC/Imager-1.035/changes
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.