| Name | CVE-2026-25797 |
| Description | ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, the ps coders, responsible for writing PostScript files, fails to sanitize the input before writing it into the PostScript header. An attacker can provide a malicous file and inject arbitrary PostScript code. When the resulting file is processed by a printer or a viewer (like Ghostscript), the injected code is interpreted and executed. The html encoder does not properly escape strings that are written to in the html document. An attacker can provide a malicious file and injection arbitrary html code. Versions 7.1.2-15 and 6.9.13-40 contain a patch. |
| 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) |
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 | vulnerable |
| bullseye (security) | 8:6.9.11.60+dfsg-1.3+deb11u9 | vulnerable | |
| bookworm | 8:6.9.11.60+dfsg-1.6+deb12u5 | vulnerable | |
| bookworm (security) | 8:6.9.11.60+dfsg-1.6+deb12u6 | vulnerable | |
| trixie | 8:7.1.1.43+dfsg1-1+deb13u4 | vulnerable | |
| trixie (security) | 8:7.1.1.43+dfsg1-1+deb13u6 | vulnerable | |
| forky, sid | 8:7.1.2.15+dfsg1-2 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| imagemagick | source | (unstable) | 8:7.1.2.15+dfsg1-1 |
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-rw6c-xp26-225v
Fixed by: https://github.com/ImageMagick/ImageMagick/commit/26088a83d71e9daa203d54a56fe3c31f3f85463d (7.1.2-14)
Fixed by: https://github.com/ImageMagick/ImageMagick/commit/81129f79ad622ff4c1d729828a34ab0f49ec89f6 (7.1.2-14)
Fixed by: https://github.com/ImageMagick/ImageMagick6/commit/7284564901441ddb04dadaad306e9f0fb527d71f (6.9.13-39)
Fixed by: https://github.com/ImageMagick/ImageMagick6/commit/b4c37614b6da7695cb4f5b3c6e326a37bdf2b1a9 (6.9.13-39)
for imagemagick6 fix in included in a jumbo security patch with other fix like CVE-2026-25965