CVE-2026-11526 Details
Description
GD versions before 2.86 for Perl allow OS command injection and file overwrite via a 2-arg open() of filename arguments in _make_filehandle. GD::Image::_make_filehandle opens a filename argument with Perl's 2-arg open(), so a filename that begins or ends with a pipe ("| cmd", "cmd |") or begins with a redirect ("> path", ">> path") is run as a command or redirect rather than opened as a file. _make_filehandle is the single open path behind every filename-accepting constructor (new, newFromPng, newFromJpeg, and the rest); the in-memory *Data variants do not open a path and are unaffected. Any caller that forwards untrusted input to one of these constructors as a pathname can run an arbitrary command or truncate a file under the process UID.
A command injection vulnerability has been identified in the GD library for Perl, affecting versions prior to 2.86. The issue arises in the '_make_filehandle' method of the 'GD::Image' module, which uses Perl's two-argument 'open()' function. This allows filenames that begin or end with a pipe (indicating a command) or start with a redirect (indicating a file path) to be executed as commands or redirects instead of being opened as files. Consequently, any untrusted input forwarded to GD image constructors that accept filenames can be exploited to execute arbitrary commands or overwrite files under the process's user ID.
Users can upgrade to GD version 2.86 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 14, 2026CISA-ADP
Assessed Jun 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/lstein/Perl-GD/commit/67b163713c6c78dfeb693da0978ae934e5cd8210.patch | CPANSec | Source CodeVendor |
| https://metacpan.org/release/RURBAN/GD-2.86/changes | CPANSec | Release NotesVendor |
| https://lists.debian.org/debian-lts-announce/2026/06/msg00027.html | CVE | |
| http://www.openwall.com/lists/oss-security/2026/06/14/4 | CVE |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-73 | External Control of File Name or Path | CPANSec |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| GD | < 2.86 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 21, 2026 | CVE Modified | CVE |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 15, 2026 | CVE Modified | CISA-ADP |
| Jun 15, 2026 | CVE Modified | CVE |
| Jun 14, 2026 | New CVE Received | CPANSec |
Volerion