Cpan · Gd For Perl · CVE-2026-11526
**Name of the Vulnerable Software and Affected Versions**
GD for Perl versions prior to 2.86
**Description**
The ` make filehandle()` function in `GD::Image` uses Perl's 2-arg `open()` to process filename arguments. This allows OS command injection and file overwrite if a filename begins or ends with a pipe (e.g., "| cmd", "cmd |") or begins with a redirect (e.g., "> path", ">> path"). This issue affects every filename-accepting constructor, including `new()`, `newFromPng()`, and `newFromJpeg()`. Callers forwarding untrusted input as a pathname can execute arbitrary commands or truncate files under the process UID. In-memory *Data variants are not affected.
**Recommendations**
Update to version 2.86 or later.