# CVE-2026-11526: 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

CVE-2026-11526 is fixed in 4 products on 1 platform, first by libgd-perl 2.84-2ubuntu0.1, released June 14, 2026. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2026-11526
- Priority: High
- CVSS: 9.8 (Moderate)
- EPSS: 0.0135
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 14, 2026
- Weakness: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-11526

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libgd-perl Debian 12.15 (bookworm) | 2.76-4+deb12u1 | [DEBIAN-CVE-2026-11526](https://patchblox.com/security/data/fix/linux/debian-cve-2026-11526.md) | Jun 24, 2026 |
| Linux | libgd-perl Debian 13.5 (trixie) | 2.78-1+deb13u1 | [DEBIAN-CVE-2026-11526](https://patchblox.com/security/data/fix/linux/debian-cve-2026-11526.md) | Jun 24, 2026 |
| Linux | libgd-perl Debian 14 | 2.84-3 | [DEBIAN-CVE-2026-11526](https://patchblox.com/security/data/fix/linux/debian-cve-2026-11526.md) | Jun 24, 2026 |
| Linux | libgd-perl Ubuntu 22.04.1 LTS (jammy) | 2.76-2ubuntu0.1 | [libgd-perl 2.76-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libgd-perl-2.76-2ubuntu0.1.md) | Jul 3, 2026 |
| Linux | libgd-perl Ubuntu 24.04.5 LTS (noble) | 2.78-1ubuntu0.24.04.1 | [libgd-perl 2.78-1ubuntu0.24.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libgd-perl-2.78-1ubuntu0.24.04.1.md) | Jul 3, 2026 |
| Linux | libgd-perl Ubuntu 25.10 (questing) | 2.78-1ubuntu0.25.10.1 | [libgd-perl 2.78-1ubuntu0.25.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-libgd-perl-2.78-1ubuntu0.25.10.1.md) | Jul 3, 2026 |
| Linux | libgd-perl Ubuntu 26.04.1 LTS (resolute) | 2.84-2ubuntu0.1 | [libgd-perl 2.84-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-resolute-libgd-perl-2.84-2ubuntu0.1.md) | Jun 14, 2026 |
| Linux | perl-GD amzn 2023 | 2.80-1.amzn2023.0.3 | [ALAS2023-2026-1890](https://patchblox.com/security/data/fix/linux/alas2023-2026-1890.md) | Jun 22, 2026 |
| Linux | perl-GD-debuginfo amzn 2023 | 2.80-1.amzn2023.0.3 | [ALAS2023-2026-1890](https://patchblox.com/security/data/fix/linux/alas2023-2026-1890.md) | Jun 22, 2026 |
| Linux | perl-GD-debugsource amzn 2023 | 2.80-1.amzn2023.0.3 | [ALAS2023-2026-1890](https://patchblox.com/security/data/fix/linux/alas2023-2026-1890.md) | Jun 22, 2026 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
