CVE Database›Document archive›CVE-2026-11526

CVE-2026-11526

perl-GD: perl-GD: Arbitrary command execution and file overwrite via crafted filenames

Loading…

Severity

Critical

Red Hat Product Security

9.8

CVSS 3.1

Review impact separately from score.

Published · June 14, 2026

Updated · August 4, 2026

Description

A flaw was found in perl-GD. A remote attacker could exploit this vulnerability by providing specially crafted filenames to functions that open files. This issue arises because the _make_filehandle function uses Perl's 2-argument open() with untrusted input, allowing special characters like pipes or redirects to be interpreted as commands or file operations. Successful exploitation could lead to arbitrary command execution or unauthorized file modification under the privileges of the affected process.

Statement

This Critical vulnerability in perl-GD enables arbitrary command execution or file overwrites when applications process untrusted input as filenames for image constructors. Exploitation occurs if an application passes a specially crafted filename containing pipe or redirect characters, allowing an attacker to execute commands or modify files with the privileges of the affected process. This poses a significant risk to system integrity and confidentiality in environments where perl-GD is used to handle external, unsanitized file paths.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Exploitation of CGI scripts using perl-GD is made difficult with the use of SecRuleEngine On from the mod_security RPM. See https://access.redhat.com/solutions/6961459 for details on installing mod_security on RHEL.

CVSS / CWE

CVSS 3.1 · 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')