CVE-2026-25797: imagemagick Code Injection
Vulnerability summary
CVE-2026-25797 is a medium (CVSS 5.7) Code Injection vulnerability in imagemagick. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 17 · Related 13Timeline
- 24-02-2026PublishedVulnerability first disclosed.
- 26-02-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · NugetEcosystem advisory · calculated5.7MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:LDiffers
EPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
7%
Versus all other CVEs
30-day change
+0.02 pp
From 0.16% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
NuGet18 products
- magick.net-q16-anycpu< 14.10.3
- Magick.NET-Q16-arm64< 14.10.3
- magick.net-q16-hdri-anycpu< 14.10.3
- Magick.NET-Q16-HDRI-arm64< 14.10.3
- Magick.NET-Q16-HDRI-OpenMP-arm64< 14.10.3
Debian1 product
- imagemagick< 8:6.9.11.60+dfsg-1.6+deb12u7 | < 8:7.1.1.43+dfsg1-1+deb13u6 | < 8:7.1.2.15+dfsg1-1
Imagemagick1 product
- imagemagick≥ 7.0.0, < 7.1.2-15 | < 6.9.13-40 | ≥ 7.0.0-0, < 7.1.2-15
Ubuntu1 product
- imagemagick< 8:6.7.7.10-6ubuntu3.13+esm21 | < 8:6.8.9.9-7ubuntu5.16+esm20 | < 8:6.9.7.4+dfsg-16ubuntu6.15+esm12 | < 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm10 | < 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm10 | < 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm9 | < 8:7.1.2.3+dfsg1-1ubuntu0.1
4 vendors · 21 products
References
9 links- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-rw6c-xp26-225vX Refsource CONFIRMREPORTWEBThird Party Advisory