REDHAT-BUG-2488744: Command Injection

Published Jun 14, 2026
·
Updated

GD versions before 2.86 for Perl allow OS command injection and file overwrite via a 2-arg open() of filename arguments in makefilehandle.

GD::Image::makefilehandle 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. makefilehandle 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.

Affected Software

2 affected components
Perl GD<2.86
Perl GD::Image<2.86

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GD (Perl) to a version that resolves this vulnerability.

    Fixed in 2.86
  2. Configuration

    Avoid calling GD::Image filename-accepting constructors (new, newFromPng, newFromJpeg, and others that route to GD::Image::_make_filehandle). If possible, use the in-memory *Data variants, since they do not open a path and are unaffected by the 2-arg open() issue.

    GD::Image Use in-memory *Data variants instead of filename-accepting constructors = Use *Data variants (e.g., in-memory Data variants) and avoid pathname-based constructors
  3. Configuration

    If you must use pathname-based constructors, ensure untrusted input is not used as the filename/path argument and do not allow pathnames that begin or end with a pipe ("| cmd", "cmd |") or begin with a redirect ("> path", ">> path"); these are interpreted as commands/redirects by the vulnerable 2-arg open().

    GD::Image::_make_filehandle (input pathname to Perl 2-arg open()) Restrict pathname values = Reject/avoid pathnames that begin or end with a pipe or begin with a redirect

Event History

Jun 14, 2026
Data Sourced
via Red Hat·12:01 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2488744?

The severity of REDHAT-BUG-2488744 is rated at 73, indicating a high level of risk.

2

How do I fix REDHAT-BUG-2488744?

To fix REDHAT-BUG-2488744, update your Perl GD and Perl GD::Image packages to versions 2.86 or later.

3

What is the impact of REDHAT-BUG-2488744?

The impact of REDHAT-BUG-2488744 includes potential OS command injection and file overwrite vulnerabilities.

4

Which software is affected by REDHAT-BUG-2488744?

The software affected by REDHAT-BUG-2488744 includes Perl GD and Perl GD::Image.

5

What kind of vulnerabilities are associated with REDHAT-BUG-2488744?

REDHAT-BUG-2488744 is associated with command injection and OS command injection vulnerabilities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203