Skip to main content

Imager::File::PNG CVE-2026-73639

| EUVDEUVD-2026-82492 CRITICAL
Out-of-bounds Write (CWE-787)
2026-09-17 9b29abf9-4ab0-4765-b253-1875cd9b441e
9.1
CVSS 3.1 · Vendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft PNG with tRNS chunk (8-bit direct color)
  2. Delivery
    Submit image to app calling Imager->read()
  3. Exploit
    libpng expands alpha into undersized row buffer
  4. Execution
    png_read_row writes width bytes past allocation
  5. Impact
    Heap corruption crashes process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an application that reads attacker-supplied PNG data through Imager or Imager::File::PNG 1.003 (e.g., Imager->read() on uploaded/remote images). The malicious PNG must be an 8-bit, non-palette (direct-color) image carrying a tRNS transparency chunk, which routes to the vulnerable read_direct8() path. Limiting factors: 16-bit images (read_direct16, sizes buffer via png_get_rowbytes) and palette images (read_paletted) are NOT affected; exploitation depends on the host application actually passing untrusted images to the decoder, and the demonstrated impact is a process crash rather than confirmed code execution.

Impact

Signals are mixed and point to a moderate, not critical, real-world priority. The vendor/NVD CVSS is 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H), but the description supports only heap corruption that 'can crash the process' - a denial-of-service outcome - and provides no evidence of confidentiality disclosure; the C:H metric appears overstated for an out-of-bounds WRITE primitive, which by nature corrupts rather than leaks memory. EPSS is low at 0.18% (7th percentile), the CVE is NOT in CISA KEV, and no public exploit code is identified - only a patch commit and advisory exist. Exploitation status: no public exploit identified at time of analysis. The most defensible reading is a network-reachable, unauthenticated DoS (heap overflow) whose theoretical escalation to code execution is unproven; treat as a routine patch priority for Perl stacks that decode untrusted PNGs, not an emergency. Note the AV:N in the vector reflects library-in-a-web-app usage rather than a network service itself - real reachability depends on whether the deploying application feeds attacker-supplied images to Imager->read().

Exploit ScenarioDerived

An attacker uploads or supplies a crafted 8-bit non-palette PNG containing a tRNS transparency chunk to a Perl application that decodes images via Imager->read() (e.g., an avatar/thumbnail processor). When libpng expands the transparency into an extra alpha channel, read_direct8() writes 'width' bytes past its undersized row buffer, corrupting the heap and crashing the worker process. No public exploit code exists; the crafted-file recipe is derivable from the public patch and advisory but weaponization to code execution is unproven.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 22, 2026

An out-of-bounds heap write in Imager::File::PNG 1.003 - and in the identical reader bundled with Imager releases before 1.035 - allows a crafted 8-bit, non-palette PNG carrying a tRNS transparency chunk to overflow the row buffer during decoding, corrupting the heap and crashing the process. The bug is reachable unauthenticated by any application that hands attacker-supplied image data to Imager->read() or the PNG reader, but the demonstrated and assessed impact is denial of service through a process crash, not confirmed remote code execution. Exploitation requires that the host application actually decode untrusted PNGs; the issue is not listed in CISA KEV, no public exploit code has been identified at time of analysis, and EPSS is low (0.18%, roughly the 7th percentile), though a vendor-released patch exists in Imager::File::PNG 1.004.

RemediationAI

Vendor-released patch: Imager::File::PNG 1.004, which corrects the row-buffer sizing in read_direct8() so the allocation accounts for the alpha channel libpng adds when a tRNS chunk is present; upgrade via CPAN or your OS package manager, or upgrade the Imager distribution to 1.035 or later, which bundles the fixed reader (see https://metacpan.org/release/TONYC/Imager-File-PNG-1.004/changes and https://metacpan.org/release/TONYC/Imager-1.035/changes). Where immediate upgrade is not possible, the most effective compensating control is to prevent untrusted input from reaching the vulnerable code path: strip or reject tRNS-carrying, 8-bit direct-color PNGs at the upload/ingestion boundary using an independent validator, or re-encode untrusted images with a different, unaffected decoder before passing them to Imager - at the cost of added processing latency and possible rejection of legitimate transparent PNGs. Alternatively, treat image decoding as hostile work by running it in a separate low-privilege subprocess or sandbox with memory limits, so that heap corruption terminates only the worker rather than the host application; this trades architectural complexity and throughput for containment and does not eliminate the underlying flaw. Restricting who can submit images to the application reduces exposure but is only partial for any service that accepts user-supplied content. Monitor the GitHub advisory (GHSA-jhx5-34j8-9g88), the oss-security thread at https://seclists.org/oss-sec/2026/q3/819, and vendor distribution channels for backported fixes in packaged builds.

Affected ProductsAI

Imager::File::PNG version 1.003 (fixed in 1.004) is the directly affected distribution, per the metacpan changes file at https://metacpan.org/release/TONYC/Imager-File-PNG-1.004/changes. The same vulnerable PNG reader is bundled inside the broader Imager distribution, whose changes are recorded at https://metacpan.org/release/TONYC/Imager-1.035/changes, meaning Imager releases prior to 1.035 that embed the 1.003 reader are also affected. The scope is limited to decoding 8-bit direct-color PNGs that contain a tRNS transparency chunk; palette images (read_paletted) and 16-bit images (read_direct16) are explicitly not vulnerable. No CPE strings were supplied with the source data, so exact platform/package enumeration should be derived from the vendor advisory at https://github.com/tonycoz/imager/security/advisories/GHSA-jhx5-34j8-9g88, the fix commit at https://github.com/tonycoz/imager/commit/d973bd7e8843f084e8071caa24b89545c88b1e4b.patch, and the pull request at https://github.com/tonycoz/imager/pull/567.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Imager::File::PNG module is a Perl XS binding around libpng; its read_direct8() routine handles 8-bit direct-color (grayscale/RGB, non-palette) images, while read_paletted() and read_direct16() handle palette and 16-bit inputs. In the vulnerable 1.003 code, read_direct8() sized its output row allocation from the original PNG channel count, but when a tRNS chunk is present libpng synthesizes an additional alpha channel (for example 3 channels becoming 4) and png_read_row() writes the expanded row into that allocation. Because the buffer was still computed as channels * width, libpng writes one extra byte per pixel - width bytes - past the end of the heap allocation. This is a classic out-of-bounds write (CWE-787) rooted in a channel-count bookkeeping error: the fix renames the parameter to ochannels, keeps a separate writable vchannels counter, and allocates vchannels * width so the buffer matches the alpha-expanded row. Palette inputs are routed to read_paletted() and 16-bit inputs to read_direct16(), which derives its size from png_get_rowbytes() and therefore already allocates for the expanded row - explaining why only the 8-bit direct-color path with a tRNS chunk is affected. The same C reader is shipped inside the Imager distribution, so applications installing Imager rather than the standalone module inherit the flaw.

Know when Perl gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
vuln.today AI 7.5 HIGH

Untrusted PNG decoded by a library with no auth/UI in automated pipelines (AV:N/AC:L/PR:N/UI:N); demonstrated impact is heap-corruption crash (A:H), with no evidence for confidentiality (C:N) - vendor C:H is unsupported.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e).

CVSS VectorVendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

Lifecycle Timeline

3
CVSS changed
Sep 22, 2026 - 19:22 NVD
9.1 (CRITICAL)
CVE Published
Sep 17, 2026 - 22:17 cve.org
CRITICAL 9.1
CVE Published
Sep 17, 2026 - 22:17 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Technical POC Analysis

CWE-787 out-of-bounds write in readdirect8() in the Imager::File::PNG reader, which is also bundled inside the Imager distribution.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A heap memory-corruption flaw in the Imager PNG decoder - Imager::File::PNG 1.003 and the identical reader bundled with Imager releases before 1.035 - can be triggered by a malformed PNG file and crash the decoding process, exposing any internal or customer-facing service that accepts attacker-supplied images to unauthenticated denial-of-service. Confirmed impact is limited to process termination rather than code execution: the issue is not in CISA KEV, no public exploit code has been identified at time of analysis, and EPSS is 0.2% (roughly the 7th percentile). Leadership should care because image upload, thumbnail generation, and document-processing pipelines are common and often internet-exposed, so a small number of crafted files could repeatedly interrupt service even without a sophisticated attacker.

Business Impact: Medium
Compensating Controls

Apply vendor patch (Imager::File::PNG 1.004, or Imager 1.035 or later). Where immediate upgrade is not feasible, restrict or reject untrusted PNG uploads at the ingestion layer, run decoding in a sandboxed process with strict memory and restart limits so a crash does not cascade, and alert on repeated PNG decode crashes as a potential exploitation signal.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Low
Popular Perl imaging module, but niche/declining language ecosystem
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Medium
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

More in Perl

View all
CVE-2012-6329 HIGH POC
7.5 Jan 04

The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand

CVE-2017-12814 CRITICAL POC
9.8 Sep 28

Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before

CVE-2015-8608 CRITICAL POC
9.8 Feb 07

The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of

CVE-2018-18314 CRITICAL POC
9.8 Dec 07

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated

CVE-2018-18312 CRITICAL POC
9.8 Dec 05

Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid

CVE-2026-13221 CRITICAL POC
9.1 Jul 13

Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a

CVE-2018-18313 CRITICAL POC
9.1 Dec 07

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa

CVE-2016-2381 HIGH
7.5 Apr 08

Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e

CVE-2023-31484 HIGH POC
8.1 Apr 29

CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS

CVE-2016-6185 HIGH POC
7.8 Aug 02

The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig

CVE-2018-12015 HIGH POC
7.5 Jun 07

In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha

CVE-2020-10543 HIGH
8.2 Jun 05

Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy