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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | perl-gd | 2.86-r0 | ALPINE-CVE-2026-11526 |
| Alpine:v3.22 | perl-gd | 2.86-r0 | ALPINE-CVE-2026-11526 |
| Alpine:v3.23 | perl-gd | 2.86-r0 | ALPINE-CVE-2026-11526 |
| Alpine:v3.24 | perl-gd | 2.86-r0 | ALPINE-CVE-2026-11526 |
| Debian:12 | libgd-perl | 2.76-4+deb12u1 | DEBIAN-CVE-2026-11526 |
| Debian:13 | libgd-perl | 2.78-1+deb13u1 | DEBIAN-CVE-2026-11526 |
| Debian:14 | libgd-perl | 2.84-3 | DEBIAN-CVE-2026-11526 |
| Ubuntu:22.04:LTS | libgd-perl | 2.76-2ubuntu0.1 | USN-8484-1 |
| Ubuntu:22.04:LTS | libgd-perl | 2.76-2ubuntu0.1 | UBUNTU-CVE-2026-11526 |
| Ubuntu:24.04:LTS | libgd-perl | 2.78-1ubuntu0.24.04.1 | USN-8484-1 |
| Ubuntu:24.04:LTS | libgd-perl | 2.78-1ubuntu0.24.04.1 | UBUNTU-CVE-2026-11526 |
| Ubuntu:25.10 | libgd-perl | 2.78-1ubuntu0.25.10.1 | USN-8484-1 |
| Ubuntu:25.10 | libgd-perl | 2.78-1ubuntu0.25.10.1 | UBUNTU-CVE-2026-11526 |
| Ubuntu:26.04:LTS | libgd-perl | 2.84-2ubuntu0.1 | UBUNTU-CVE-2026-11526 |
| Ubuntu:26.04:LTS | libgd-perl | 2.84-2ubuntu0.1 | USN-8484-1 |
Affected products (as reported)
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