CVE-2026-31853

ImageMagick has a heap buffer over-write on 32-bit systems in SFW decoder

Published Mar 11, 2026 CVSS 3.1 · 5.7 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-16 and 6.9.13-41, an overflow on 32-bit systems can cause a crash in the SFW decoder when processing extremely large images. This vulnerability is fixed in 7.1.2-16 and 6.9.13-41.

Analysis

AI-generated

Technical impact

ImageMagick, widely used for image editing, contains a heap buffer overflow in its SFW decoder when parsing extremely large images on 32‑bit systems. The overflow can trigger a process crash, resulting in a denial of service. The weakness is identified as CWE‑122, an out‑of‑bounds write that corrupts heap memory.

Affected Systems

The issue affects all 32‑bit installations of ImageMagick versions released prior to 7.1.2‑16 on the 7.x branch and prior to 6.9.13‑41 on the 6.x branch. Any environment running those earlier builds is vulnerable, regardless of operating system.

Risk and Exploitability

The CVSS score of 5.7 indicates moderate severity. EPSS reports an exploitation likelihood of less than 1%, and the vulnerability is not listed in the CISA KEV catalog. Attackers can exploit the flaw by providing a crafted, oversized image to any process that uses the SFW decoder, either remotely or locally depending on who can influence image input. The exploit path is straightforward: submit the large image, trigger the overflow, and cause a crash, leading to denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest ImageMagick patch, upgrading to version 7.1.2‑16 or 6.9.13‑41

Generated by OpenCVE AI on March 17, 2026 at 21:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4539-1 imagemagick security update
Debian DSA Debian DSA DSA-6169-1 imagemagick security update
Debian DSA Debian DSA DSA-6210-1 imagemagick security update
Github GHSA Github GHSA GHSA-56jp-jfqg-f8f4 ImageMagick is vulnerable to heap buffer over-write on 32-bit systems in SFW decoder
Ubuntu USN Ubuntu USN USN-8592-1 ImageMagick vulnerabilities
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. Prior to 7.1.2-16 and 6.9.13-41, an overflow on 32-bit systems can cause a crash in the SFW decoder when processing extremely large images. This vulnerability is fixed in 7.1.2-16 and 6.9.13-41.
Title ImageMagick has a heap buffer over-write on 32-bit systems in SFW decoder
Weaknesses CWE-122
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 11, 2026, 5:42 PM
Reserved
Mar 9, 2026, 7:02 PM
Status
Analyzed
Published
Mar 11, 2026, 5:16 PM
Modified
Jun 17, 2026, 10:34 AM
Severity
Moderate
Public date
Mar 11, 2026, 5:09 PM