CVE-2026-73639

Perl · Imager::File::PNG

A heap-based out-of-bounds write vulnerability in Imager::File::PNG allows unauthenticated remote attackers to cause process crashes by processing malicious PNG files with tRNS transparency chunks.

Executive summary

An unauthenticated remote code execution or denial of service risk exists in the Perl Imager::File::PNG module due to improper buffer sizing during PNG processing.

Vulnerability

This vulnerability is an out-of-bounds write (CWE-787) occurring in the read_direct8 function. When an attacker provides a crafted PNG file containing a tRNS transparency chunk, the library fails to allocate sufficient buffer space for the added alpha channel, resulting in memory corruption.

Business impact

The vulnerability carries a CVSS score of 9.1, reflecting its potential for severe impact. Successful exploitation can lead to application crashes, causing significant service disruption, or potential heap corruption that may be leveraged for unauthorized code execution. Given that PNG processing is a common function in web applications, this flaw represents a high risk to system availability and integrity.

Remediation

Immediate Action: Upgrade to Imager-File-PNG version 1.004 or later, or update the main Imager distribution to version 1.035 or later if the bundled library is in use.

Proactive Monitoring: Monitor server logs for unexpected process terminations or segmentation faults occurring during image upload or processing routines.

Compensating Controls: Deploy a Web Application Firewall (WAF) or image validation gateway to inspect and reject malformed PNG files, specifically those containing suspicious tRNS chunks, before they reach the application backend.

Exploitation status

Public Exploit Available: No

Analyst recommendation

Given the critical nature of this heap-based vulnerability, administrators should prioritize updating the affected Perl modules immediately. Failure to patch leaves the underlying application process vulnerable to crashes and potential exploitation by any unauthenticated user capable of submitting an image for processing.

More Perl CVEs

History

CVE Brief tracked this CVE 5 days before it had a CVSS score.

  1. Disclosed CVE record published
  2. Collected by CVE Brief No CVSS score yet; tracked as early warning
  3. CVSS score assigned 9.1 (3.1) from cvelistV5
  4. Analyst report written

Sources

Originally found and disclosed by Alexander Bluhm (bluhm), per the CVE Program record.