Loop with Unreachable Exit Condition ('Infinite Loop') Affecting ImageMagick-perl package, versions <0:6.9.10.68-3.amzn2.0.1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.36% (72nd 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-AMZN2-IMAGEMAGICKPERL-6228410
  • published6 Feb 2024
  • disclosed16 Apr 2018

Introduced: 16 Apr 2018

CVE-2018-10177  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 ImageMagick-perl to version 0:6.9.10.68-3.amzn2.0.1 or higher.
This issue was patched in ALAS2-2024-2432.

NVD Description

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

In ImageMagick 7.0.7-28, there is an infinite loop in the ReadOneMNGImage function of the coders/png.c file. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted mng file.