Vulnerability · Published Jun 14, 2026 · Assigned by CPANSec

CVE-2026-11526GD versions before 2.86 for Perl allow OS command injection and file overwrite via a 2-arg open() of filename arguments in _make_filehandle

Critical 9.8

In plain English

A critical-severity OS command injection in GD from RURBAN. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.4%top 28.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.21perl-gd2.86-r0ALPINE-CVE-2026-11526
Alpine:v3.22perl-gd2.86-r0ALPINE-CVE-2026-11526
Alpine:v3.23perl-gd2.86-r0ALPINE-CVE-2026-11526
Alpine:v3.24perl-gd2.86-r0ALPINE-CVE-2026-11526
Debian:12libgd-perl2.76-4+deb12u1DEBIAN-CVE-2026-11526
Debian:13libgd-perl2.78-1+deb13u1DEBIAN-CVE-2026-11526
Debian:14libgd-perl2.84-3DEBIAN-CVE-2026-11526
Ubuntu:22.04:LTSlibgd-perl2.76-2ubuntu0.1USN-8484-1
Ubuntu:22.04:LTSlibgd-perl2.76-2ubuntu0.1UBUNTU-CVE-2026-11526
Ubuntu:24.04:LTSlibgd-perl2.78-1ubuntu0.24.04.1USN-8484-1
Ubuntu:24.04:LTSlibgd-perl2.78-1ubuntu0.24.04.1UBUNTU-CVE-2026-11526
Ubuntu:25.10libgd-perl2.78-1ubuntu0.25.10.1USN-8484-1
Ubuntu:25.10libgd-perl2.78-1ubuntu0.25.10.1UBUNTU-CVE-2026-11526
Ubuntu:26.04:LTSlibgd-perl2.84-2ubuntu0.1UBUNTU-CVE-2026-11526
Ubuntu:26.04:LTSlibgd-perl2.84-2ubuntu0.1USN-8484-1

Affected products (as reported)

VendorProductVersions
RURBAN GD 0 – before 2.86

Weakness: CWE-78, CWE-73 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References