CVE-2026-11526: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in RURBAN GD
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.
AI Analysis
Technical Summary
The vulnerability in RURBAN GD (CVE-2026-11526) involves improper neutralization of special elements in OS commands (CWE-78). Specifically, GD::Image::_make_filehandle uses Perl's 2-arg open() on filename arguments, enabling command injection when filenames begin or end with pipe ('|') or redirection ('>') characters. This affects all filename-accepting constructors (e.g., new, newFromPng, newFromJpeg) in GD versions before 2.86. Attackers can exploit this by passing crafted filenames to execute arbitrary commands or truncate files under the process's user ID. The in-memory *Data variants that do not open file paths are unaffected. No official patch or remediation level is provided in the available data.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary operating system commands or overwrite files with the privileges of the process running the GD library. This can lead to full system compromise, data loss, or service disruption. The CVSS score of 9.8 reflects the critical nature of this vulnerability with network attack vector, no required privileges or user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid passing untrusted input to any GD filename-accepting constructors (new, newFromPng, newFromJpeg, etc.). Use in-memory *Data variants that do not open file paths when possible. Implement input validation or sanitization to prevent filenames beginning or ending with pipe or redirection characters. Monitor vendor channels for updates and apply official patches once released.
CVE-2026-11526: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in RURBAN GD
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.
CVSS v3.1
Score 9.8critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in RURBAN GD (CVE-2026-11526) involves improper neutralization of special elements in OS commands (CWE-78). Specifically, GD::Image::_make_filehandle uses Perl's 2-arg open() on filename arguments, enabling command injection when filenames begin or end with pipe ('|') or redirection ('>') characters. This affects all filename-accepting constructors (e.g., new, newFromPng, newFromJpeg) in GD versions before 2.86. Attackers can exploit this by passing crafted filenames to execute arbitrary commands or truncate files under the process's user ID. The in-memory *Data variants that do not open file paths are unaffected. No official patch or remediation level is provided in the available data.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary operating system commands or overwrite files with the privileges of the process running the GD library. This can lead to full system compromise, data loss, or service disruption. The CVSS score of 9.8 reflects the critical nature of this vulnerability with network attack vector, no required privileges or user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid passing untrusted input to any GD filename-accepting constructors (new, newFromPng, newFromJpeg, etc.). Use in-memory *Data variants that do not open file paths when possible. Implement input validation or sanitization to prevent filenames beginning or ending with pipe or redirection characters. Monitor vendor channels for updates and apply official patches once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-06-07T19:26:46.259Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2e99f7e617e2d83479c5cd
Added to database: 06/14/2026, 12:09:27 UTC
Last enriched: 06/21/2026, 14:19:14 UTC
Last updated: 07/31/2026, 19:22:57 UTC
Views: 166
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.