Loop with Unreachable Exit Condition ('Infinite Loop') Affecting php70-pecl-imagick package, versions <0:3.4.4-1.7.amzn1


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.41% (74th 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-AMZN201803-PHP70PECLIMAGICK-5888680
  • published8 Sept 2023
  • disclosed18 May 2018

Introduced: 18 May 2018

CVE-2017-18273  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2018.03 php70-pecl-imagick to version 0:3.4.4-1.7.amzn1 or higher.
This issue was patched in ALAS-2023-1813.

NVD Description

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

In ImageMagick 7.0.7-16 Q16 x86_64 2017-12-22, an infinite loop vulnerability was found in the function ReadTXTImage in coders/txt.c, which allows attackers to cause a denial of service (CPU exhaustion) via a crafted image file that is mishandled in a GetImageIndexInList call.