ImageMagick's MSL: Stack overflow in ProcessMSLScript
Published Feb 24, 2026
9.8
CRITICALCVSS 3.1
EPSS 0.37%
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, Magick fails to check for circular references between two MSLs, leading to a stack overflow. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
Affected products
-
- Version < 6.9.13-40StatusaffectedConstraints-
- Version >= 7.0.0, < 7.1.2-15StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ImageMagick | ImageMagick | n/a |
|
- < 6.9.13-40
- ≥ 7.0.0-0 · < 7.1.2-15
No data.
Red Hat Enterprise Linux 6
ImageMagick
Out of support scope
Red Hat Enterprise Linux 7
ImageMagick
Out of support scope
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | ImageMagick | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | ImageMagick | Out of support scope | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This MODERATE impact vulnerability in ImageMagick arises from a stack overflow when processing maliciously crafted MSL files containing circular references. Red Hat Enterprise Linux and Community Projects are affected where ImageMagick is used to process untrusted image or script files.
Red Hat mitigation
To mitigate this issue, avoid processing untrusted or maliciously crafted MSL (Magick Scripting Language) files with ImageMagick. Implement strict input validation and sanitization for any ImageMagick operations that handle external or user-supplied content.
References (8)
- https://access.redhat.com/security/cve/CVE-2026-25971 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2442117 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-7427 Advisory
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-8mpr-6xr2-chhc x_refsource_CONFIRMThird Party Advisory
- https://github.com/advisories/GHSA-8mpr-6xr2-chhc Advisory
- https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3
- https://nvd.nist.gov/vuln/detail/CVE-2026-25971
- https://www.cve.org/CVERecord?id=CVE-2026-25971
Change history (0)
No recorded changes yet.