Out-of-bounds write in Imager-File-PNG
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Imager-File-PNG | 1.003 to before 1.004 | 1.004 | Patch available | CNA |
| — | Imager | 1.034 to before 1.035 | 1.035 | Patch available | CNA |
- Imager-File-PNG Vendor— Affected 1.003 to before 1.004 Fixed in 1.004 Patch available CNA
- Imager Vendor— Affected 1.034 to before 1.035 Fixed in 1.035 Patch available CNA
Remediation
- Fix · CNA Imager-File-PNG Fixed in 1.004
- Fix · CNA Imager Fixed in 1.035
Timeline
- 2026-10-02 Threatist record created from CVE-2026-73639
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences