Integer Overflow or Wraparound Affecting imagemagick package, versions <8:6.9.9.34+dfsg-3


low

Snyk CVSS

    Attack Complexity Low
    User Interaction Required
    Availability High

    Threat Intelligence

    EPSS 0.41% (74th percentile)
Expand this section
NVD
6.5 medium
Expand this section
Red Hat
3.3 low

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 ID SNYK-DEBIAN11-IMAGEMAGICK-517961
  • published 7 Sep 2017
  • disclosed 7 Sep 2017

How to fix?

Upgrade Debian:11 imagemagick to version 8:6.9.9.34+dfsg-3 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream imagemagick package and not the imagemagick package as distributed by Debian. See How to fix? for Debian:11 relevant fixed versions and status.

In the function ReadTXTImage() in coders/txt.c in ImageMagick 7.0.6-10, an integer overflow might occur for the addition operation "GetQuantumRange(depth)+1" when "depth" is large, producing a smaller value than expected. As a result, an infinite loop would occur for a crafted TXT file that claims a very large "max_value" value.