Logo
vulnerabilityCVE-2026-25797
Name
CVE-2026-25797
Source
NVD ( link)Debian ( link)
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
imagemagick
Exploitable

Vulnerability Ratings#


5.7
CVSSv31
5.3
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
7.1.2-23
Not Affected
buildroot
master
7.1.2-23
Not Affected
openwrt
master
7.1.2.21-r1
Not Affected
openwrt
openwrt-25.12
7.1.2.1-r1
Not Affected
yocto
master
7.1.2-25
Not Affected
yocto
scarthgap
7.1.1-47
Patched

Resolved with patches#


imagemagick (yocto:scarthgap)

#
Title
Author
Resolve
1
Prevent code injection via PostScript header
Dirk Lemstra <dirk@lemstra.org>
CVE-2026-25797
2
Properly escape the strings that are written as raw html
Dirk Lemstra <dirk@lemstra.org>
CVE-2026-25797