Integer overflow in Imagemagick

CVE-2017-14173

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.

Vulnerability class: Integer Overflow

EPSS: 0.019 (78.0th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.

Affected products

Weakness classification (CWE)

References

  • cve@mitre.org (x_refsource_UBUNTU, vendor-advisory, Third Party Advisory)
  • cve@mitre.org (vendor-advisory, Third Party Advisory, x_refsource_GENTOO)
  • cve@mitre.org (x_refsource_CONFIRM, Exploit, Patch, Third Party Advisory, Issue Tracking)
  • cve@mitre.org (mailing-list, x_refsource_MLIST, Third Party Advisory)
  • cve@mitre.org (mailing-list, x_refsource_MLIST, Third Party Advisory)
  • cve@mitre.org (x_refsource_CONFIRM, Patch, Vendor Advisory)

Frequently asked questions

What is CVE-2017-14173?
CVE-2017-14173 is a medium-severity vulnerability in Imagemagick, classified under Integer Overflow or Wraparound. CVSS score: 6.5/10. Published 2017-09-07.
How severe is CVE-2017-14173?
Medium severity. CVSS v3 base score is 6.5 out of 10.