VDB

CVE-2026-25797

CVE-2026-25797 PUBLISHED CVSS 5.7 MEDIUM

ImageMagick vulnerable to Code injection via PostScript header in ps coders

Reported by github_m · Published February 24, 2026

Magick.NET-Q16-HDRI-OpenMP-x64 is fixed in 14.10.3 (NuGet)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
Magick.NET-Q16-HDRI-OpenMP-x64NuGet14.10.3
Magick.NET-Q16-OpenMP-x86NuGet14.10.3
magick.net-q16-anycpuNuGet14.10.3
Magick.NET-Q16-HDRI-arm64NuGet14.10.3
Magick.NET-Q8-x86NuGet14.10.3
Magick.NET-Q16-HDRI-AnyCPUNuGet14.10.3
Magick.NET-Q16-HDRI-x64NuGet14.10.3
Magick.NET-Q16-OpenMP-x64NuGet14.10.3
Magick.NET-Q16-OpenMP-arm64NuGet14.10.3
Magick.NET-Q16-arm64NuGet14.10.3
ImageMagick-develAmazon Linux1:6.9.13.40-1.amzn2023.0.1

Risk scores

CVSS 3.1
5.7
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L

Affected products

VendorProductVersions
ImageMagickImageMagick>= 7.0.0, < 7.1.2-15, < 6.9.13-40
NuGetMagick.NET-Q16-OpenMP-x860
NuGetmagick.net-q16-anycpu0
NuGetMagick.NET-Q16-HDRI-arm640
NuGetMagick.NET-Q16-HDRI-OpenMP-x640
NuGetMagick.NET-Q8-x860
amazon:2023ImageMagick-devel0
NuGetMagick.NET-Q16-OpenMP-arm640
NuGetmagick.net-q16-hdri-anycpu0
ImageMagickImageMagick0, 7.0.0
amazon:2ImageMagick0
NuGetMagick.NET-Q8-x640
NuGetMagick.NET-Q8-OpenMP-arm640
NuGetMagick.NET-Q16-HDRI-AnyCPU0
amazon:2023ImageMagick0
NuGetmagick.net-q8-x640
NuGetMagick.NET-Q16-AnyCPU0
amazon:2023ImageMagick-doc0
alpineimagemagick0
amazon:2ImageMagick-c++-devel0

…and 19 more

Timeline

  • Feb 23, 2026 CVE Published
  • Feb 24, 2026 EPSS Score (30 in total, the first dated here)
  • Feb 26, 2026 CVE Updated
  • Mar 22, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (20 in total, the first dated here)
  • Mar 30, 2026 PoC Published
  • Oct 4, 2026 Distribution Patch (10 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-25797
vulnetix vdb fixes CVE-2026-25797

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-25797/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›