Bug 2488744 (CVE-2026-11526) - CVE-2026-11526 perl-GD: perl-GD: Arbitrary command execution and file overwrite via crafted filenames
Summary: CVE-2026-11526 perl-GD: perl-GD: Arbitrary command execution and file overwri...
Keywords:
Status: NEW
Alias: CVE-2026-11526
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2508451 2508452
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-14 12:01 UTC by OSIDB Bzimport
Modified: 2026-08-03 18:15 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:49758 0 None None None 2026-08-03 18:15:36 UTC

Description OSIDB Bzimport 2026-06-14 12:01:18 UTC
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.

Comment 3 errata-xmlrpc 2026-08-03 18:15:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:49758 https://access.redhat.com/errata/RHSA-2026:49758


Note You need to log in before you can comment on or make changes to this bug.