CVE-2026-11526
published critical CVSS 3.1 · 9.8GD versions before 2.86 for Perl allow OS command injection and file overwrite via a 2-arg open() of filename arguments in _make_filehandle
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| RURBAN | — | GD0 to < 2.86 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-3387 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1890 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | perl-gd | Fixed | 2.86-r0 | Package fix record |
| Debian | bookworm | libgd-perl | Advisory build | 2.76-4+deb12u1 | DLA-4638-1 |
| Oracle Linux | 7 | perl-GDx86_64 | Advisory build | 0:2.49-3.0.1.el7 | ELSA-2026-49758 |
| Red Hat Enterprise Linux | RHEL-7 | perl-GDppc64 | Advisory build | 2.49-3.el7_9.1 | RHSA-2026:49758 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-GDaarch64 | Advisory build | 2.860.0-1.1 | OPENSUSE-SU-2026:11017-1 |
Show 28 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | libgd-perl | Advisory build | 2.76-2ubuntu0.1 | USN-8484-1 |
| Amazon Linux | AL2 | perl-GDaarch64 | Listed in advisory | Not stated | ALAS2-2026-3387 |
| Alpine Linux | v3.21 | perl-gd | Fixed | 2.86-r0 | Package fix record |
| Alpine Linux | v3.22 | perl-gd | Fixed | 2.86-r0 | Package fix record |
| Alpine Linux | v3.23 | perl-gd | Fixed | 2.86-r0 | Package fix record |
| Alpine Linux | v3.24 | perl-gd | Fixed | 2.86-r0 | Package fix record |
| Debian | bullseye | libgd-perl | Advisory build | 2.73-1+deb11u1 | DLA-4638-1 |
| Debian | trixie | libgd-perl | Advisory build | 2.78-1+deb13u1 | DSA-6345-1 |
| Red Hat Enterprise Linux | RHEL-7 | perl-GDppc64le | Advisory build | 2.49-3.el7_9.1 | RHSA-2026:49758 |
| Red Hat Enterprise Linux | RHEL-7 | perl-GDs390x | Advisory build | 2.49-3.el7_9.1 | RHSA-2026:49758 |
| Red Hat Enterprise Linux | RHEL-7 | perl-GDsrc | Advisory build | 2.49-3.el7_9.1 | RHSA-2026:49758 |
| Red Hat Enterprise Linux | RHEL-7 | perl-GDx86_64 | Advisory build | 2.49-3.el7_9.1 | RHSA-2026:49758 |
| Red Hat Enterprise Linux | RHEL-7 | perl-GD-debuginfoppc64 | Advisory build | 2.49-3.el7_9.1 | RHSA-2026:49758 |
| Red Hat Enterprise Linux | RHEL-7 | perl-GD-debuginfoppc64le | Advisory build | 2.49-3.el7_9.1 | RHSA-2026:49758 |
| Red Hat Enterprise Linux | RHEL-7 | perl-GD-debuginfos390x | Advisory build | 2.49-3.el7_9.1 | RHSA-2026:49758 |
| Red Hat Enterprise Linux | RHEL-7 | perl-GD-debuginfox86_64 | Advisory build | 2.49-3.el7_9.1 | RHSA-2026:49758 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-GDppc64le | Advisory build | 2.860.0-1.1 | OPENSUSE-SU-2026:11017-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-GDs390x | Advisory build | 2.860.0-1.1 | OPENSUSE-SU-2026:11017-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-GDx86_64 | Advisory build | 2.860.0-1.1 | OPENSUSE-SU-2026:11017-1 |
| Ubuntu | noble | libgd-perl | Advisory build | 2.78-1ubuntu0.24.04.1 | USN-8484-1 |
| Ubuntu | questing | libgd-perl | Advisory build | 2.78-1ubuntu0.25.10.1 | USN-8484-1 |
| Ubuntu | resolute | libgd-perl | Advisory build | 2.84-2ubuntu0.1 | USN-8484-1 |
| Amazon Linux | AL2 | perl-GDi686 | Listed in advisory | Not stated | ALAS2-2026-3387 |
| Amazon Linux | AL2 | perl-GDsrc | Listed in advisory | Not stated | ALAS2-2026-3387 |
| Amazon Linux | AL2 | perl-GDx86_64 | Listed in advisory | Not stated | ALAS2-2026-3387 |
| Amazon Linux | AL2023 | perl-GDaarch64 | Listed in advisory | Not stated | ALAS2023-2026-1890 |
| Amazon Linux | AL2023 | perl-GDsrc | Listed in advisory | Not stated | ALAS2023-2026-1890 |
| Amazon Linux | AL2023 | perl-GDx86_64 | Listed in advisory | Not stated | ALAS2023-2026-1890 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| RURBAN | GD | 0 to < 2.86 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
2- CWE-78 CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-73 CWE-73 External Control of File Name or Path
References
4Provider assertions
3CPANSec · cna
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
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a3312c2f95889908ac8bf4d60013afc692eeb51d89ad1e063e01f1ef56f16146
- Ingested
- 23 Sep 2026, 09:00:42 UTC
- Source record
- Official CVE record