PT-2026-49088 · Cpan+1 · Gd For Perl+1
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
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.
Exploit
Fix
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Gd For Perl
Linuxmint