Vulnerability · Published Jan 20, 2026 · Assigned by GitHub_M

CVE-2026-23874ImageMagick's MSL: Stack overflow via infinite recursion in ProcessMSLScript

Medium 5.5

In plain English

A medium-severity infinite loop in ImageMagick from ImageMagick. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.2%top 91.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

ImageMagick is free and open-source software used for editing and manipulating digital images. Versions prior to 7.1.2-13 have a stack overflow via infinite recursion in MSL (Magick Scripting Language) `<write>` command when writing to MSL format. Version 7.1.2-13 fixes the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12imagemagick8:6.9.11.60+dfsg-1.6+deb12u6DSA-6111-1
Debian:12imagemagick8:6.9.11.60+dfsg-1.6+deb12u6DEBIAN-CVE-2026-23874
Debian:13imagemagick8:7.1.1.43+dfsg1-1+deb13u5DEBIAN-CVE-2026-23874
Debian:13imagemagick8:7.1.1.43+dfsg1-1+deb13u5DSA-6111-1
Debian:14imagemagick8:7.1.2.13+dfsg1-1DEBIAN-CVE-2026-23874
NuGetmagick.net-q16-anycpu14.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q16-arm6414.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q16-hdri-anycpu14.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q16-hdri-arm6414.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q16-hdri-openmp-arm6414.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q16-hdri-openmp-x6414.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q16-hdri-x6414.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q16-hdri-x8614.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q16-openmp-arm6414.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q16-openmp-x6414.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q16-x6414.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q16-x8614.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q8-anycpu14.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q8-arm6414.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q8-openmp-arm6414.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q8-openmp-x6414.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q8-x6414.10.2GHSA-9vj4-wc7r-p844
NuGetmagick.net-q8-x8614.10.2GHSA-9vj4-wc7r-p844
Ubuntu:25.10imagemagickno fix listedUBUNTU-CVE-2026-23874
Ubuntu:26.10imagemagickno fix listedUBUNTU-CVE-2026-23874

Affected products (as reported)

VendorProductVersions
ImageMagick ImageMagick < 7.1.2-13

Weakness: CWE-835 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References