Loop with Unreachable Exit Condition ('Infinite Loop') Affecting ImageMagick-debugsource package, versions <1:6.9.13.29-1.amzn2023.0.5


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.16% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-IMAGEMAGICKDEBUGSOURCE-15246040
  • published6 Feb 2026
  • disclosed20 Jan 2026

Introduced: 20 Jan 2026

CVE-2026-23874  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 ImageMagick-debugsource to version 1:6.9.13.29-1.amzn2023.0.5 or higher.
This issue was patched in ALAS2023-2026-1383.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ImageMagick-debugsource package and not the ImageMagick-debugsource package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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) &lt;write&gt; command when writing to MSL format. Version 7.1.2-13 fixes the issue.

CVSS Base Scores

version 3.1