Security mailing lists by PureSourceCode

CVE-2026-25797

MEDIUM 5.3CVSS 3.1

ImageMagick: 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD imagemagick imagemagick
cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
< 6.9.13-40 6.9.13-40
NVD imagemagick imagemagick
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.