CVE-2026-25966
ImageMagick: ImageMagick: Policy bypass allows unauthorized access to standard streams via fd: pseudo-filenames
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · February 24, 2026
Updated · August 18, 2026
Description
A flaw was found in ImageMagick. The "secure" security policy, intended to prevent reading and writing from standard streams, can be bypassed. An attacker can exploit this by using fd:<n> pseudo-filenames, which are not properly blocked by the policy. This allows the attacker to circumvent the intended security restrictions, potentially leading to unauthorized access to standard input/output (stdin/stdout) and subsequent information disclosure or data manipulation.
Statement
This MODERATE impact flaw in ImageMagick allows a security policy bypass through the use of fd:<n> pseudo-filenames, enabling unauthorized access to standard input/output despite the "secure" policy. Red Hat Enterprise Linux 6 ELS and 7 ELS, as well as community projects like Fedora and EPEL, are affected by this vulnerability. Exploitation requires an attacker to provide a specially crafted image or command that leverages this bypass.
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
To mitigate this issue, modify the ImageMagick security policy file, typically located at /etc/ImageMagick-X/policy.xml (where X is the version), to explicitly deny access to fd: pseudo-filenames. Add a policy rule similar to <policy domain="delegate" rights="none" pattern="fd:*" /> within the <policymap> section. This change will prevent ImageMagick from processing fd: paths, thereby closing the bypass. A restart of any services utilizing ImageMagick may be required for the policy change to take effect.
CVSS / CWE
CVSS 3.1 · 5.9CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
CWE-184 · Incomplete List of Disallowed Inputs