CVE-2026-25797
Medium · 5.7CVSS
5.7
EPSS
0.2%
Published
Feb 24, 2026
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| NuGet | Magick.NET-Q16-AnyCPU | 0 | 14.10.3 |
| NuGet | Magick.NET-Q16-HDRI-AnyCPU | 0 | 14.10.3 |
| NuGet | Magick.NET-Q16-HDRI-OpenMP-arm64 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q16-HDRI-OpenMP-x64 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q16-HDRI-arm64 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q16-HDRI-x64 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q16-HDRI-x86 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q16-OpenMP-arm64 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q16-OpenMP-x64 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q16-OpenMP-x86 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q16-arm64 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q16-x86 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q8-AnyCPU | 0 | 14.10.3 |
| NuGet | Magick.NET-Q8-OpenMP-arm64 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q8-OpenMP-x64 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q8-arm64 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q8-x64 | 0 | 14.10.3 |
| NuGet | Magick.NET-Q8-x86 | 0 | 14.10.3 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | ImageMagick | 0 | 7.1.0.9-150400.6.68.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | ImageMagick | 0 | 7.1.0.9-150400.6.68.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | ImageMagick | 0 | 7.1.0.9-150400.6.68.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | ImageMagick | 0 | 7.1.0.9-150400.6.68.2 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP7 | ImageMagick | 0 | 7.1.1.43-150700.3.37.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP7 | ImageMagick | 0 | 7.1.0.9-150400.6.68.2 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP7 | ImageMagick | 0 | 7.1.1.43-150700.3.37.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | ImageMagick | 0 | 7.1.0.9-150400.6.68.2 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | ImageMagick | 0 | 7.1.0.9-150400.6.68.2 |
| SUSE:Linux Enterprise Server 15 SP6-LTSS | ImageMagick | 0 | 7.1.1.21-150600.3.42.2 |
| SUSE:Linux Enterprise Server 15 SP6-LTSS | ImageMagick | 0 | 7.1.0.9-150400.6.68.2 |
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | ImageMagick | 0 | 6.8.8.1-71.231.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | ImageMagick | 0 | 7.1.0.9-150400.6.68.2 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | ImageMagick | 0 | 7.1.0.9-150400.6.68.2 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP6 | ImageMagick | 0 | 7.1.1.21-150600.3.42.2 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP6 | ImageMagick | 0 | 7.1.0.9-150400.6.68.2 |
| openSUSE:Leap 15.6 | ImageMagick | 0 | 7.1.1.21-150600.3.42.2 |
| openSUSE:Leap 16.0 | ImageMagick | 0 | 7.1.2.0-160000.6.1 |
| openSUSE:Tumbleweed | ImageMagick | 0 | 7.1.2.15-1.1 |
Related vulnerabilities
- GHSA-rw6c-xp26-225v ImageMagick: Code Injection via PostScript header in ps coders Same vulnerability
- CVE-2026-27799 ImageMagick is free and open-source software used for editing and manipulating digital… Also affects Magick.NET-Q16-AnyCPU
- CVE-2026-27798 ImageMagick is free and open-source software used for editing and manipulating digital… Also affects Magick.NET-Q16-AnyCPU
- GHSA-r99p-5442-q2x2 ImageMagick has a heap Buffer Over-read in its DJVU image format handler Also affects Magick.NET-Q16-AnyCPU
- GHSA-qpgx-jfcq-r59f ImageMagick: Heap Buffer Over-read in WaveletDenoise when processing small images Also affects Magick.NET-Q16-AnyCPU
- GHSA-gq5v-qf8q-fp77 ImageMagick: Heap-based Buffer Overflow in GetPixelIndex due to metadata-cache… Also affects Magick.NET-Q16-AnyCPU
- GHSA-wfx3-6g53-9fgc ImageMagick: Memory Leak in multiple coders that write raw pixel data Also affects Magick.NET-Q16-AnyCPU
- GHSA-3q5f-gmjc-38r8 ImageMagick: Memory leak in coders/txt.c without freetype Also affects Magick.NET-Q16-AnyCPU