Arbitrary Code Injection Affecting ImageMagick/ImageMagick package, versions [,6.9.13-39)[7.0.0,7.1.2-14)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-IMAGEMAGICKIMAGEMAGICK-15338505
  • published24 Feb 2026
  • disclosed24 Feb 2026
  • creditUnknown

Introduced: 24 Feb 2026

CVE-2026-25797  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade ImageMagick/ImageMagick to version 6.9.13-39, 7.1.2-14 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection in PostScript header processing. An attacker can execute malicious code by submitting a file that is processed by a printer or viewer.

Workaround

This vulnerability can be mitigated by disabling the PostScript (PS) coder in the policy configuration.

CVSS Base Scores

version 4.0
version 3.1