CVE-2026-106577

ImageMagick: Code Injection in the postscript coders

Published Oct 7, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability lies in the way ImageMagick’s PostScript coders handle unescaped or untrimmed input values. When these values are passed directly into the generated PostScript output, an attacker can inject arbitrary code that will be interpreted by the PostScript engine. This flaw is a classic example of CWE‑94 and allows the execution of the embedded code, compromising the integrity of image processing and potentially enabling broader system compromise.

Affected Systems

All installations of ImageMagick earlier than version 7.1.2‑31 and 6.9.13‑56 are affected. The vulnerability applies to any deployment that uses the PostScript coders on untrusted input, regardless of the platform or configuration.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity. The EPSS score is not available and the flaw is not listed in the CISA KEV catalog, suggesting limited known exploitation. The attack vector is inferred to be either local or remote; applications that accept user‑supplied images (or PostScript data) and process them through ImageMagick may be exploited by supplying crafted PostScript input that triggers the code injection.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to at least version 7.1.2‑31 or 6.9.13‑56, which includes the fix for the injection flaw.
  • If an upgrade is not immediately possible, limit the source and content of images processed by ImageMagick to trusted or strictly validated files, ensuring that any PostScript parameters are escaped or trimmed before use.
  • Disable or remove the PostScript coder feature from the ImageMagick installation if it is not required for the application’s functionality, or replace it with an alternative image processing library that does not expose this flaw.

Generated by OpenCVE AI on October 7, 2026 at 18:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4858-1 imagemagick security update
History
Type Values Removed Values Added
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Imagemagick
Imagemagick imagemagick
Vendors & Products Imagemagick
Imagemagick imagemagick
Type Values Removed Values Added
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.
Title ImageMagick: Code Injection in the postscript coders
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 7, 2026, 4:09 PM
Reserved
Oct 6, 2026, 8:31 PM
Status
Analyzed
Published
Oct 7, 2026, 4:17 PM
Modified
Oct 21, 2026, 4:01 PM
Severity
Moderate
Public date
Oct 7, 2026, 3:39 PM