CVE-2026-55595

ImageMagick: Infinite Loop in connected-components when providing invalid arguments

Published Jul 1, 2026 CVSS 3.1 · 4.7 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-51 and 7.1.2-26, when providing invalid arguments to the connected-components option an infinite loop will occur. This issue has been fixed in versions 6.9.13-51 and 7.1.2-26.

Analysis

AI-generated

Technical impact

ImageMagick does not validate arguments supplied to the connected‑components option; when invalid arguments are provided the program enters an endless loop, consuming CPU and memory until the process is terminated. This flaw maps to uncontrolled resource consumption (CWE-400) and infinite loop (CWE-835) and does not allow privilege escalation or remote code execution.

Affected Systems

Versions of ImageMagick older than 6.9.13‑51 and 7.1.2‑26 are vulnerable when the connected‑components option is enabled. Any deployment that processes images with this option—such as web servers, content management systems, or automated image‑processing pipelines—can be impacted if it uses an unpatched build.

Risk and Exploitability

The CVSS score of 4.7 indicates a moderate severity. The EPSS score of less than 1% indicates a very low probability of exploitation at present. The vulnerability is not listed in the CISA KEV catalogue. Based on the description, the likely attack vector is the use of invalid arguments supplied through an image file, command line, or API that invokes the connected‑components option. While this can cause a denial‑of‑service condition for the host running ImageMagick, no higher‑level effects such as remote code execution are indicated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 6.9.13‑51 or newer, or 7.1.2‑26 or newer, to eliminate the flaw.
  • If an upgrade is not feasible, disable the connected‑components option in all configurations or command lines that do not require it.
  • Implement input validation to ensure that any parameters passed to the connected‑components option are within the expected range before invoking the command.

Generated by OpenCVE AI on August 1, 2026 at 22:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4680-1 imagemagick security update
Github GHSA Github GHSA GHSA-qhmf-7fc4-8q3h ImageMagick: Infinite Loop in connected-components when providing invalid arguments
History
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 versions 6.9.13-51 and 7.1.2-26, when providing invalid arguments to the connected-components option an infinite loop will occur. This issue has been fixed in versions 6.9.13-51 and 7.1.2-26.
Title ImageMagick: Infinite Loop in connected-components when providing invalid arguments
Weaknesses CWE-400
CWE-835
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 2, 2026, 12:46 PM
Reserved
Jun 16, 2026, 11:18 PM
Status
Analyzed
Published
Jul 1, 2026, 7:16 PM
Modified
Jul 2, 2026, 7:30 PM
Severity
Moderate
Public date
Jul 1, 2026, 7:00 PM