
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-25966 is a security policy bypass vulnerability in ImageMagick that allows local attackers to circumvent the "secure" policy's restriction on reading from or writing to standard streams (stdin/stdout) by using fd:<n> pseudo-filenames (e.g., fd:0, fd:1). It affects ImageMagick versions prior to 7.1.2-15 (7.x branch) and prior to 6.9.13-40 (6.x branch), as well as Magick.NET NuGet packages prior to version 14.10.3. The vulnerability was published on February 23–24, 2026, by maintainer dlemstra via a GitHub Security Advisory. The CVSS v3.1 base score is 5.9 (Moderate) per the GitHub Advisory, though Red Hat's scoring assigns it 7.8 (High) (GitHub Advisory, Red Hat Bugzilla).
The root cause is an incomplete denylist in ImageMagick's config/policy-secure.xml (CWE-284: Improper Access Control; CWE-184: Incomplete List of Disallowed Inputs). The secure policy template blocks access to standard stream paths (e.g., -, /dev/stdin) but does not account for ImageMagick's fd:<n> pseudo-filename syntax, which directly references open file descriptors by number. An attacker with local access can supply a filename like fd:0 or fd:1 to an ImageMagick command or API call, bypassing the policy's intent and gaining read/write access to standard input/output streams. No elevated privileges or user interaction are required for exploitation (GitHub Advisory, Red Hat Bugzilla).
Successful exploitation allows a local attacker to read from or write to standard input/output streams in contexts where the ImageMagick secure policy was intended to prevent such access. This can result in unauthorized data access (confidentiality impact), data manipulation or injection (integrity impact), and potential disruption of processing pipelines (availability impact). In environments where ImageMagick processes untrusted input — such as web applications or automated image pipelines — this bypass could be leveraged to exfiltrate data passed through stdin or inject malicious content into stdout-consuming processes (GitHub Advisory, Feedly).
/etc/ImageMagick-7/policy.xml or similar).pattern="-") but does not include a rule blocking fd: pseudo-filenames.fd:<n> pseudo-filename as input or output, for example: convert fd:0 output.png to read from stdin, or convert input.png fd:1 to write to stdout.fd: path pattern, ImageMagick processes the file descriptor reference without triggering a policy violation.fd:0, fd:1, or other fd:<n> pseudo-filenames as input or output arguments, particularly in environments where the secure policy is expected to be enforced.convert, magick) processes with file descriptor arguments (fd:) in their command line, visible via ps aux or process auditing tools (e.g., auditd).fd:1.Upgrade ImageMagick to version 7.1.2-15 or later (7.x branch) or 6.9.13-40 or later (6.x branch), which include updated secure policy templates that block fd:<n> pseudo-filenames by default. For Magick.NET users, upgrade to version 14.10.3 or later. As an interim workaround for systems that cannot be immediately patched, manually add a deny rule for the fd: path pattern to your policy.xml security policy file (e.g., <policy domain="path" rights="none" pattern="fd:*"/>). Downstream Linux distributions including SUSE, openSUSE, Debian, and Amazon Linux 2 have issued updated packages (GitHub Advisory, Red Hat Bugzilla).
The vulnerability was disclosed by ImageMagick maintainer dlemstra via a GitHub Security Advisory rated Moderate severity. Red Hat tracked the issue via Bugzilla (Bug 2442122) and assigned it medium priority. Multiple Linux distributions — including SUSE, openSUSE Tumbleweed, Debian, and Amazon Linux 2 — issued security updates addressing this CVE. No significant social media discussion or notable independent researcher commentary has been identified beyond standard distribution security announcements (Red Hat Bugzilla, GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."