{"id":"CVE-2026-23874","published":"2026-01-20T00:52:52Z","modified":"2026-01-20T21:43:48Z","title":"ImageMagick's MSL: Stack overflow via infinite recursion in ProcessMSLScript","vendor":"ImageMagick","product":"ImageMagick","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00188,"percentile":0.08546,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9vj4-wc7r-p844","tags":["x_refsource_CONFIRM"]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":1.71},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"imagemagick","affectedVersions":[{"vendor":"ImageMagick","product":"ImageMagick","versions":["< 7.1.2-13"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-20T21:37:11.270727Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Magick.NET-Q8-x64","vulnerableRanges":["<14.10.2"],"patched":["14.10.2"],"from":["GHSA-9vj4-wc7r-p844"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q8-arm64","vulnerableRanges":["<14.10.2"],"patched":["14.10.2"],"from":["GHSA-9vj4-wc7r-p844"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q8-x86","vulnerableRanges":["<14.10.2"],"patched":["14.10.2"],"from":["GHSA-9vj4-wc7r-p844"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q8-OpenMP-x64","vulnerableRanges":["<14.10.2"],"patched":["14.10.2"],"from":["GHSA-9vj4-wc7r-p844"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q8-OpenMP-arm64","vulnerableRanges":["<14.10.2"],"patched":["14.10.2"],"from":["GHSA-9vj4-wc7r-p844"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-x64","vulnerableRanges":["<14.10.2"],"patched":["14.10.2"],"from":["GHSA-9vj4-wc7r-p844"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-arm64","vulnerableRanges":["<14.10.2"],"patched":["14.10.2"],"from":["GHSA-9vj4-wc7r-p844"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-x86","vulnerableRanges":["<14.10.2"],"patched":["14.10.2"],"from":["GHSA-9vj4-wc7r-p844"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x64","vulnerableRanges":["<14.10.2"],"patched":["14.10.2"],"from":["GHSA-9vj4-wc7r-p844"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-arm64","vulnerableRanges":["<14.10.2"],"patched":["14.10.2"],"from":["GHSA-9vj4-wc7r-p844"],"provenance":"source"}],"summary":{"text":"ImageMagick's MSL (Magick Scripting Language) processing, specifically the ProcessMSLScript component, contains a flaw in which the <write> command causes unbounded recursion when writing to MSL format, leading to a stack overflow in versions prior to 7.1.2-13. An attacker who can supply a crafted MSL script to ImageMagick on a local system, with low-privilege authenticated access and no user interaction required, can crash the process via denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:09Z"},"euvd":{"id":"EUVD-2026-3588","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-57807","published":"2025-09-05","fixed":"14.8.2","kev":false,"link":{"from":"CVE-2025-57807","to":"CVE-2026-23874","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q8-x64","fromFixed":"14.8.2","toFixed":"14.10.2","daysApart":137}]}},{"cve":"CVE-2025-68618","published":"2025-12-30","fixed":"14.10.1","kev":false,"link":{"from":"CVE-2025-68618","to":"CVE-2026-23874","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q16-x64","fromFixed":"14.10.1","toFixed":"14.10.2","daysApart":21},{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q16-x86","fromFixed":"14.10.1","toFixed":"14.10.2","daysApart":21},{"kind":"similar","provenance":"machine","score":0.22,"basis":"same product + description similarity"}]}},{"cve":"CVE-2026-22770","published":"2026-01-20","fixed":"14.10.2","kev":false},{"cve":"CVE-2026-23874","published":"2026-01-20","fixed":"14.10.2","kev":false},{"cve":"CVE-2026-23952","published":"2026-01-22","fixed":"14.10.2","kev":false},{"cve":"CVE-2026-33899","published":"2026-04-13","fixed":"14.12.0","kev":false},{"cve":"CVE-2026-33901","published":"2026-04-13","fixed":"14.12.0","kev":false}],"package":"NuGet:Magick.NET-Q16-x64"}}