# 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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.35%, higher than 72% of CVEs (2026-12-01)
- Published: 2026-06-14T11:39:21.122Z
- Modified: 2026-07-23T10:10:00.170Z
- Weaknesses: CWE-73, CWE-78
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: CPANSec

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

(As written by CVE List.)

## Affected

- GD: before 2.86

## References

- <https://github.com/lstein/Perl-GD/commit/67b163713c6c78dfeb693da0978ae934e5cd8210.patch> (patch)
- <https://metacpan.org/release/RURBAN/GD-2.86/changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/06/14/4>
- <https://lists.debian.org/debian-lts-announce/2026/06/msg00027.html>

## Sources

- CVE List: [CVE-2026-11526](https://www.cve.org/CVERecord?id=CVE-2026-11526), CVE Terms of Use, modified 2026-06-21
- NVD: [CVE-2026-11526](https://nvd.nist.gov/vuln/detail/CVE-2026-11526), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-11526 · Whole record: https://cve.day/CVE-2026-11526.json · Rebuilt by cve.day 2026-11-25T22:59:24.617Z
