| Name | CVE-2026-25966 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-6158-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| imagemagick (PTS) | bullseye | 8:6.9.11.60+dfsg-1.3+deb11u4 | fixed |
| bullseye (security) | 8:6.9.11.60+dfsg-1.3+deb11u10 | fixed | |
| bookworm | 8:6.9.11.60+dfsg-1.6+deb12u5 | fixed | |
| bookworm (security) | 8:6.9.11.60+dfsg-1.6+deb12u7 | fixed | |
| trixie | 8:7.1.1.43+dfsg1-1+deb13u5 | vulnerable | |
| trixie (security) | 8:7.1.1.43+dfsg1-1+deb13u6 | fixed | |
| forky | 8:7.1.2.15+dfsg1-2 | fixed | |
| sid | 8:7.1.2.16+dfsg1-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| imagemagick | source | bullseye | (not affected) | |||
| imagemagick | source | bookworm | (not affected) | |||
| imagemagick | source | trixie | 8:7.1.1.43+dfsg1-1+deb13u6 | DSA-6158-1 | ||
| imagemagick | source | (unstable) | 8:7.1.2.15+dfsg1-1 |
[bookworm] - imagemagick <not-affected> (vulnerable code introduced later)
[bullseye] - imagemagick <not-affected> (vulnerable code introduced later)
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-xwc6-v6g8-pw2h
Fixed by: https://github.com/ImageMagick/ImageMagick/commit/8d4c67a90ae458fb36393a05c0069e9123ac174c (7.1.2-14)
Fixed by: https://github.com/ImageMagick/ImageMagick6/commit/2c2f87de5330cd895fab9ea6228577b30acd1c7a (6.9.13-39)
Policy introduced by https://github.com/ImageMagick/ImageMagick6/commit/ba3905764b8f995706dcea915ea587fb79dbd490 (6.9.12-94)
Only one default policy before 6.9.12-94