Libimager perl: 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… (CVE-2026-73639)
Description
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.
CVSS v3.1
Score 9.1critical
Affected software
pkg:deb/ubuntu/libimager-perl?arch=source&distro=xenialpkg:deb/ubuntu/libimager-perl?arch=source&distro=bionicpkg:deb/ubuntu/libimager-perl?arch=source&distro=focalpkg:deb/ubuntu/libimager-perl?arch=source&distro=jammypkg:deb/ubuntu/libimager-perl?arch=source&distro=noblepkg:deb/ubuntu/libimager-perl?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Imager::File::PNG versions from 1.003 before 1.004 for Perl improperly handle PNG images with a tRNS transparency chunk in the read_direct8() function. The function adds an alpha channel but sizes the row buffer based on the original channel count, leading to a buffer overflow when libpng expands the transparency into the extra channel. This results in writing width bytes past the allocated buffer, causing heap corruption. The vulnerability affects the bundled PNG reader in the Imager distribution and can be triggered by processing attacker-supplied PNG images.
Potential Impact
An attacker can supply a specially crafted PNG image with a tRNS transparency chunk that triggers a heap buffer overflow in the vulnerable Imager::File::PNG versions. This overflow can corrupt the heap and cause the process to crash, leading to denial of service. The CVSS score of 9.1 indicates a critical severity with network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact but no integrity impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Users should monitor vendor communications for updates and avoid processing untrusted PNG images with affected versions until a fix is available.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-73639
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.04:LTS"]
Threat ID: 6a870a94acd9273b49b5a50c
Added to database: 08/20/2026, 14:09:24 UTC
Last enriched: 09/25/2026, 01:59:17 UTC
Last updated: 10/04/2026, 18:53:18 UTC
Views: 61
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.