Integer Overflow or Wraparound

Affecting imagemagick package, versions <8:6.9.7.4+dfsg-11+deb9u10

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

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.

References

CVSS Score

6.5
medium severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    Required
  • Scope
    Unchanged
  • Confidentiality
    None
  • Integrity
    None
  • Availability
    High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVE
CVE-2017-14173
CWE
CWE-190 CWE-835
Snyk ID
SNYK-DEBIAN9-IMAGEMAGICK-402574
Disclosed
07 Sep, 2017
Published
07 Sep, 2017