5.7

CVE-2026-25797: imagemagick Code Injection

CVSS: 5.7v3.1MediumAnalyzed
AliasesUBUNTU-CVE-2026-25797DEBIAN-CVE-2026-25797GHSA-rw6c-xp26-225v
Published 24-02-2026Last modified 26-02-2026

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.

Overall risk
23/100
0100
Low · default modelHow is this calculated?
CVSS score
5.7/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.18%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 17 · Related 13

Timeline

  1. 24-02-2026
    PublishedVulnerability first disclosed.
  2. 26-02-2026
    Last 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

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

18-09-202618-10-2026
EPSS score
0.18%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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