CVE-2026-25966 ImageMagick's Security Policy Bypass through config/policy-secure.xml via "fd handler" leads to stdin/stdout access

Medium 5.9 Published Updated

Attackers can bypass ImageMagick's secure policy to access stdin/stdout via fd handlers, allowing unauthorized data read or modification.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-25966?

CVE-2026-25966 is a medium-severity vulnerability in Imagemagick Imagemagick, published on 24 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

ImageMagick is free and open-source software used for editing and manipulating digital images. The shipped "secure" security policy includes a rule intended to prevent reading/writing from standard streams. However, ImageMagick also supports fd:<n> pseudo-filenames (e.g., fd:0, fd:1). Prior to versions 7.1.2-15 and 6.9.13-40, this path form is not blocked by the secure policy templates, and therefore bypasses the protection goal of "no stdin/stdout." Versions 7.1.2-15 and 6.9.13-40 contain a patch by including a change to the more secure policies by default. As a workaround, add the change to one's security policy manually.

Weakness: CWE-284

Which versions are affected by CVE-2026-25966?

34 open source packages ship an affected version, including Magick.NET-Q16-AnyCPU, Magick.NET-Q16-HDRI-AnyCPU and Magick.NET-Q16-HDRI-OpenMP-arm64. It affects 1 product.

PackageAffectedFixed in
Magick.NET-Q16-AnyCPU NuGetAll versions14.10.3
Magick.NET-Q16-AnyCPU NuGetAll versions14.10.3
Magick.NET-Q16-HDRI-AnyCPU NuGetAll versions14.10.3
Magick.NET-Q16-HDRI-AnyCPU NuGetAll versions14.10.3
Magick.NET-Q16-HDRI-OpenMP-arm64 NuGetAll versions14.10.3
Magick.NET-Q16-HDRI-OpenMP-arm64 NuGetAll versions14.10.3
28 more packages
Magick.NET-Q16-HDRI-arm64 NuGetAll versions14.10.3
Magick.NET-Q16-HDRI-arm64 NuGetAll versions14.10.3
Magick.NET-Q16-HDRI-x64 NuGetAll versions14.10.3
Magick.NET-Q16-HDRI-x64 NuGetAll versions14.10.3
Magick.NET-Q16-HDRI-x86 NuGetAll versions14.10.3
Magick.NET-Q16-HDRI-x86 NuGetAll versions14.10.3
Magick.NET-Q16-OpenMP-arm64 NuGetAll versions14.10.3
Magick.NET-Q16-OpenMP-arm64 NuGetAll versions14.10.3
Magick.NET-Q16-OpenMP-x64 NuGetAll versions14.10.3
Magick.NET-Q16-OpenMP-x64 NuGetAll versions14.10.3
Magick.NET-Q16-OpenMP-x86 NuGetAll versions14.10.3
Magick.NET-Q16-OpenMP-x86 NuGetAll versions14.10.3
Magick.NET-Q16-arm64 NuGetAll versions14.10.3
Magick.NET-Q16-arm64 NuGetAll versions14.10.3
Magick.NET-Q16-x64 NuGetAll versions14.10.3
Magick.NET-Q16-x64 NuGetAll versions14.10.3
Magick.NET-Q8-AnyCPU NuGetAll versions14.10.3
Magick.NET-Q8-AnyCPU NuGetAll versions14.10.3
Magick.NET-Q8-OpenMP-arm64 NuGetAll versions14.10.3
Magick.NET-Q8-OpenMP-arm64 NuGetAll versions14.10.3
Magick.NET-Q8-OpenMP-x64 NuGetAll versions14.10.3
Magick.NET-Q8-OpenMP-x64 NuGetAll versions14.10.3
Magick.NET-Q8-arm64 NuGetAll versions14.10.3
Magick.NET-Q8-arm64 NuGetAll versions14.10.3
Magick.NET-Q8-x86 NuGetAll versions14.10.3
Magick.NET-Q8-x86 NuGetAll versions14.10.3
Magick.NET-QMagick.NET-Q16-x8616-x64 NuGetAll versions14.10.3
Magick.NET-QMagick.NET-Q16-x8616-x64 NuGetAll versions14.10.3

Products include Imagemagick Imagemagick.

How do I fix CVE-2026-25966?

Upgrade Magick.NET-Q16-AnyCPU to 14.10.3 or later.

Is CVE-2026-25966 being exploited?

There is no known exploitation of CVE-2026-25966 in the wild and no public exploit code.

All Imagemagick Imagemagick vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-25966, ECHO-52e3-2668-affe, GHSA-xwc6-v6g8-pw2h, JLSEC-2026-953, MINI-8jxh-r2rg-7vh5, UBUNTU-CVE-2026-25966.

Is CVE-2026-25966 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free