Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 1.4%top 31%

CVE-2026-11526: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in RURBAN GD

0
Critical
VulnerabilityCVE-2026-11526cvecve-2026-11526cwe-78cwe-73
Published: 06/14/2026 (06/14/2026, 11:39:21 UTC)
Source: CVE Database V5
Vendor/Project: RURBAN
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →cve
GD
pkg:github/GD
Affected versions
<2.86

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

AILast updated: 06/21/2026, 14:19:14 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses