Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft PNG with tRNS chunk (8-bit direct color)
-
DeliverySubmit image to app calling Imager->read()
-
Exploitlibpng expands alpha into undersized row buffer
-
Executionpng_read_row writes width bytes past allocation
-
ImpactHeap 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
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.
Primary rating from Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e).
CVSS VectorVendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
Lifecycle Timeline
3DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand
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
The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated
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
Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa
Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig
In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers
EUVD-2026-82492
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB