CVE-2026-25797
MEDIUM 5.3CVSS 3.1ImageMagick: Code Injection via PostScript header in ps coders
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
- 24 Feb 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-94
- Also known as
- GHSA-rw6c-xp26-225v
- Sources
- NVDJSONOSV GHSA-rw6c-xp26-225vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.7 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.7 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | imagemagick | imagemagickcpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* |
< 6.9.13-40 | 6.9.13-40 |
| NVD | imagemagick | imagemagickcpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* |
>= 7.0.0-0, < 7.1.2-15 | 7.1.2-15 |
| OSV | NuGet | Magick.NET-Q16-AnyCPU | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-HDRI-AnyCPU | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-HDRI-OpenMP-arm64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-HDRI-OpenMP-x64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-HDRI-arm64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-HDRI-x64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-HDRI-x86 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-OpenMP-x64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-OpenMP-x86 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-arm64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-x86 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q8-AnyCPU | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q8-OpenMP-arm64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q8-OpenMP-x64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q8-arm64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q8-x64 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q8-x86 | < 14.10.3 | 14.10.3 |
| OSV | NuGet | Magick.NET-Q16-OpenMP-arm64 | < 14.10.3 | 14.10.3 |
References
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-rw6c-xp26-225v · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-25797 · ADVISORY
- https://github.com/ImageMagick/ImageMagick/commit/26088a83d71e9daa203d54a56fe3c31f3f85463d · WEB
- https://github.com/ImageMagick/ImageMagick · PACKAGE
- https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3 · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 24 Feb 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 Feb 2026)