CVE-2026-25989

ImageMagick has integer overflow or wraparound and incorrect conversion between numeric types in the internal SVG decoder

Published Feb 24, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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, a crafted SVG file can cause a denial of service. An off-by-one boundary check (`>` instead of `>=`) that allows bypass the guard and reach an undefined `(size_t)` cast. Versions 7.1.2-15 and 6.9.13-40 contain a patch.

Analysis

AI-generated

Technical impact

ImageMagick’s internal SVG decoder performs an off‑by‑one boundary check that allows an attacker to supply a crafted SVG file. The bug causes an undefined cast from a signed to an unsigned size type, leading to an integer overflow or wrap‑around. When triggered this flaw can exhaust resources or cause the image processing thread to terminate, resulting in a denial of service. There is no evidence of confidentiality or integrity compromise from this flaw.

Affected Systems

The vulnerability is present in all ImageMagick releases prior to 7.1.2‑15 and 6.9.13‑40, regardless of version number, and is fixed in those two releases and later. The affected vendor is ImageMagick, product ImageMagick.

Risk and Exploitability

The CVSS score of 7.5 reflects a high‑impact flaw, while the EPSS score of less than 1 % indicates a low probability of exploitation at this time. The flaw is not listed in CISA’s KEV catalog. The likely attack vector involves an application or service that processes user‑supplied SVG content through ImageMagick; if the SVG is delivered to the target, the flaw can be triggered without authentication or elevated privileges, but it requires the victim to import or render the malformed image.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update ImageMagick to version 7.1.2‑15 or newer, or 6.9.13‑40 or newer, which contain the fix for the integer overflow bug.
  • If immediate update is not possible, reconfigure the affected applications or services to reject or ignore SVG files before they reach ImageMagick, thereby preventing malicious input from reaching the vulnerable decoder.
  • Apply runtime safeguards such as size limits, sandboxing, or strict input validation when invoking ImageMagick to mitigate the risk of denial of service if SVG processing cannot be disabled.

Generated by OpenCVE AI on April 16, 2026 at 16:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4497-1 imagemagick security update
Debian DSA Debian DSA DSA-6158-1 imagemagick security update
Debian DSA Debian DSA DSA-6159-1 imagemagick security update
Github GHSA Github GHSA GHSA-7355-pwx2-pm84 ImageMagick: Integer overflow or wraparound and incorrect conversion between numeric types in the internal SVG decoder
History
Type Values Removed Values Added
Metrics ssvc

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

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
Description 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, a crafted SVG file can cause a denial of service. An off-by-one boundary check (`>` instead of `>=`) that allows bypass the guard and reach an undefined `(size_t)` cast. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
Title ImageMagick has integer overflow or wraparound and incorrect conversion between numeric types in the internal SVG decoder
Weaknesses CWE-190
CWE-681
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-193

    Off-by-one Error

  • CWE-681

    Incorrect Conversion between Numeric Types

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 28, 2026, 2:09 AM
Reserved
Feb 9, 2026, 5:41 PM
Status
Analyzed
Published
Feb 24, 2026, 3:16 AM
Modified
Jun 17, 2026, 10:25 AM
Severity
Moderate
Public date
Feb 24, 2026, 1:50 AM