CVE-2026-26983

ImageMagick: Invalid MSL <map> can result in a use after free

Published Feb 24, 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 versions 7.1.2-15 and 6.9.13-40, the MSL interpreter crashes when processing a invalid `<map>` element that causes it to use an image after it has been freed. Versions 7.1.2-15 and 6.9.13-40 contain a patch.

Analysis

AI-generated

Technical impact

The vulnerability is a use‑after‑free in the MSL interpreter of ImageMagick that occurs when an invalid `<map>` element is processed. A malformed image triggers a crash and corrupts memory, potentially allowing an attacker to execute arbitrary code or cause denial of service. The flaw is classified as CWE‑416 (Use After Free), with additional weaknesses identified as CWE‑476 (NULL Pointer Dereference) and CWE‑825 (Logical Error).

Affected Systems

Versions of ImageMagick prior to 7.1.2‑15 and 6.9.13‑40 are impacted. All builds of the ImageMagick software that include the MSL interpreter and accept `<map>` elements fall into this range. The affected vendor is ImageMagick itself, and no other third‑party packages are listed.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. The EPSS score of less than 1 % suggests a low probability of exploitation at this time, and the vulnerability is not present in the CISA KEV list. The attack vector is inferred to require the attacker to supply a crafted image or MSL script that contains an invalid `<map>` element to a system running a vulnerable version of ImageMagick. If such input originates from a remote source, the risk increases. The overall risk is moderate but mitigated by the low exploitation likelihood and the availability of a patch.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to ImageMagick 7.1.2‑15 or newer, or 6.9.13‑40 or newer, which contain the patch that fixes the malformed `<map>` issue.
  • If an upgrade is not immediately possible, restrict or remove the processing of MSL `<map>` content from untrusted image files, and validate all input images before passing them to ImageMagick.
  • As a temporary containment measure, isolate image processing workloads in a sandboxed environment to limit the impact of a potential memory corruption or crash.

Generated by OpenCVE AI on April 16, 2026 at 16:29 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-6158-1 imagemagick security update
Debian DSA Debian DSA DSA-6210-1 imagemagick security update
Github GHSA Github GHSA GHSA-w8mw-frc6-r7m8 ImageMagick: Invalid MSL <map> can result in a use after free
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
Weaknesses CWE-416
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, the MSL interpreter crashes when processing a invalid `<map>` element that causes it to use an image after it has been freed. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
Title ImageMagick: Invalid MSL <map> can result in a use after free
Weaknesses CWE-476
References
Metrics cvssV3_1

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

Weaknesses

Sources

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