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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-24 · Modified: 2026-06-23
- Aliases: UBUNTU-CVE-2026-25966, DEBIAN-CVE-2026-25966, GHSA-xwc6-v6g8-pw2h, ALPINE-CVE-2026-25966
- Record: https://cvemate.com/vulnerability/CVE-2026-25966 · JSON: https://cvemate.com/vulnerability/CVE-2026-25966/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.15%, percentile 4.347%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 21)

- alpine imagemagick (Alpine Linux): ≥ 7.0.0-0, \< 7.1.2.15-r0 \| \< 7.1.2.15-r0
- debian imagemagick (Debian): \< 8:7.1.1.43+dfsg1-1+deb13u6 \| \< 8:7.1.2.15+dfsg1-1
- ubuntu imagemagick (Ubuntu): All versions (No fix recorded) \| \< 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm17
- imagemagick imagemagick: ≥ 7.0.0, \< 7.1.2-15 \| \< 6.9.13-40 \| ≥ 7.0.0-0, \< 7.1.2-15
- NuGet Magick.NET-Q16-AnyCPU (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-arm64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-HDRI-AnyCPU (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-HDRI-arm64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-HDRI-x64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-HDRI-x86 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-OpenMP-arm64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-OpenMP-x64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-OpenMP-x86 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q16-x64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q8-AnyCPU (NuGet): \< 14.10.3
- NuGet Magick.NET-Q8-arm64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q8-OpenMP-arm64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q8-OpenMP-x64 (NuGet): \< 14.10.3
- NuGet Magick.NET-Q8-x86 (NuGet): \< 14.10.3

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-xwc6-v6g8-pw2h>
- <https://ubuntu.com/security/CVE-2026-25966>
- <https://www.cve.org/CVERecord?id=CVE-2026-25966>
- <https://security-tracker.debian.org/tracker/CVE-2026-25966>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25966>
- <https://github.com/ImageMagick/ImageMagick/commit/8d4c67a90ae458fb36393a05c0069e9123ac174c>
- <https://github.com/ImageMagick/ImageMagick>
- <https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3>
- <https://security.alpinelinux.org/vuln/CVE-2026-25966>
- <https://ubuntu.com/security/notices/USN-9469-1>

---

Data as of 2026-12-05T04:12:05.395Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
