PT-2026-21603 · Unknown · Ghostscript+1
Lemstrap
·
Published
2026-02-24
·
Updated
2026-05-11
·
CVE-2026-25797
CVSS v3.1
5.7
Medium
| Vector | AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L |
Name of the Vulnerable Software and Affected Versions
ImageMagick versions prior to 7.1.2-15
ImageMagick versions prior to 6.9.13-40
Description
ImageMagick is software used for editing and manipulating digital images. The ps coders, which handle PostScript files, do not properly sanitize input before including it in the PostScript header. This allows an attacker to inject arbitrary PostScript code through a malicious file. When a printer or viewer, such as Ghostscript, processes the resulting file, the injected code is executed. Additionally, the html encoder does not correctly escape strings written to an html document, enabling an attacker to inject arbitrary html code through a malicious file.
Recommendations
Update to ImageMagick version 7.1.2-15 or later.
Update to ImageMagick version 6.9.13-40 or later.
Exploit
Fix
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Ghostscript
Imagemagick