CVE-2026-33902

ImageMagick: Stack Overflow via Recursive FX Expression Parsing

Published Apr 13, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below both 7.1.2-19 and 6.9.13-44, a stack overflow vulnerability in ImageMagick's FX expression parser allows an attacker to crash the process by providing a deeply nested expression. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19.

Analysis

AI-generated

Technical impact

The vulnerability originates from the FX expression parser in ImageMagick, which fails to enforce a recursion depth limit and therefore overflows the processor stack when handling a deeply nested expression. This results in the ImageMagick process terminating unexpectedly, causing a denial of service. The weakness is classified as a stack overflow and resource exhaustion, matching CWE‑674 and CWE‑770.

Affected Systems

ImageMagick, the image processing library. All releases earlier than 7.1.2‑19 and 6.9.13‑44 are affected.

Risk and Exploitability

The CVSS score of 5.5 indicates medium severity. No EPSS score is available and the vulnerability is not listed in CISA’s KEV catalog. An attacker must provide a malicious FX expression to a running ImageMagick instance; the resulting crash can interrupt services that rely on the library. The risk is elevated in environments where ImageMagick processes untrusted input, such as web servers or document conversion services.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2‑19 or later, or 6.9.13‑44 or later.

Generated by OpenCVE AI on April 14, 2026 at 01:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6240-1 imagemagick security update
Github GHSA Github GHSA GHSA-f4qm-vj5j-9xpw ImageMagick has a Stack Overflow via Recursive FX Expression Parsing
History
Type Values Removed Values Added
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Imagemagick
Imagemagick imagemagick
Vendors & Products Imagemagick
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
Description ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below both 7.1.2-19 and 6.9.13-44, a stack overflow vulnerability in ImageMagick's FX expression parser allows an attacker to crash the process by providing a deeply nested expression. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19.
Title ImageMagick: Stack Overflow via Recursive FX Expression Parsing
Weaknesses CWE-674
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-674

    Uncontrolled Recursion

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 14, 2026, 3:51 PM
Reserved
Mar 24, 2026, 3:41 PM
Status
Analyzed
Published
Apr 13, 2026, 10:16 PM
Modified
Jun 17, 2026, 10:38 AM
Severity
Moderate
Public date
Apr 13, 2026, 8:59 PM