CVE-2026-11526: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in RURBAN GD
GD versions prior to 2.86 for Perl contain an OS command injection vulnerability in the _make_filehandle function. This function uses Perl's 2-argument open() on filename arguments, which allows filenames starting or ending with pipe characters or redirection symbols to be interpreted as commands or redirects. This affects all filename-accepting constructors such as new, newFromPng, and newFromJpeg. The in-memory *Data variants are not affected. Untrusted input passed as a filename can lead to arbitrary command execution or file truncation under the process user ID.
AI Analysis
Technical Summary
The vulnerability in RURBAN GD before version 2.86 arises from the use of Perl's 2-argument open() in GD::Image::_make_filehandle, which does not properly neutralize special characters in filename arguments. Filenames that begin or end with pipe characters ("| cmd", "cmd |") or redirection operators ("> path", ">> path") are executed as OS commands or cause file redirection instead of being safely opened as files. This affects all constructors that accept filenames, enabling an attacker who can supply untrusted input as a filename to execute arbitrary OS commands or overwrite files with the privileges of the running process. The in-memory data variants that do not open files are not vulnerable.
Potential Impact
An attacker who can supply untrusted input to any filename-accepting constructor in GD before 2.86 can execute arbitrary OS commands or truncate files with the privileges of the process running the Perl GD module. This can lead to unauthorized command execution and potential system compromise or data loss.
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 the in-memory *Data variants that do not open files if possible. 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 prior to 2.86 for Perl contain an OS command injection vulnerability in the _make_filehandle function. This function uses Perl's 2-argument open() on filename arguments, which allows filenames starting or ending with pipe characters or redirection symbols to be interpreted as commands or redirects. This affects all filename-accepting constructors such as new, newFromPng, and newFromJpeg. The in-memory *Data variants are not affected. Untrusted input passed as a filename can lead to arbitrary command execution or file truncation under the process user ID.
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 before version 2.86 arises from the use of Perl's 2-argument open() in GD::Image::_make_filehandle, which does not properly neutralize special characters in filename arguments. Filenames that begin or end with pipe characters ("| cmd", "cmd |") or redirection operators ("> path", ">> path") are executed as OS commands or cause file redirection instead of being safely opened as files. This affects all constructors that accept filenames, enabling an attacker who can supply untrusted input as a filename to execute arbitrary OS commands or overwrite files with the privileges of the running process. The in-memory data variants that do not open files are not vulnerable.
Potential Impact
An attacker who can supply untrusted input to any filename-accepting constructor in GD before 2.86 can execute arbitrary OS commands or truncate files with the privileges of the process running the Perl GD module. This can lead to unauthorized command execution and potential system compromise or data loss.
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 the in-memory *Data variants that do not open files if possible. 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: 6/14/2026, 12:09:27 PM
Last enriched: 6/14/2026, 12:24:25 PM
Last updated: 6/14/2026, 1:41:06 PM
Views: 6
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.