Bug 2508452 - CVE-2026-11526 perl-GD: perl-GD: Arbitrary command execution and file overwrite via crafted filenames [fedora-all]
Summary: CVE-2026-11526 perl-GD: perl-GD: Arbitrary command execution and file overwri...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-GD
Version: rawhide
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["48bd7604-355b-4662-b538-b...
Depends On:
Blocks: CVE-2026-11526
TreeView+ depends on / blocked
 
Reported: 2026-07-29 15:48 UTC by Charles Timko
Modified: 2026-07-30 07:41 UTC (History)
3 users (show)

Fixed In Version: perl-GD-2.86-1.fc43 perl-GD-2.86-1.fc44 perl-GD-2.86-1.fc45
Clone Of:
Environment:
Last Closed: 2026-07-30 07:41:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Charles Timko 2026-07-29 15:48:14 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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 1 Paul Howarth 2026-07-30 07:41:29 UTC
All current Fedora releases have GD 2.86, which fixes this issue.


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