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
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.019 (79.3th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 79th percentile — 79.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.019 · newest: 0.019 · change: 0.000
Affected products
- Imagemagick — versions 7.0.6-10
- Canonical Ubuntu Linux — versions 14.04, 16.04, 17.10
- Debian Linux — versions 8.0, 9.0
Weakness classification (CWE)
References
- usn.ubuntu.com/3681-1/ (vendor-advisory, Third Party Advisory)
- security.gentoo.org/glsa/201711-07 (vendor-advisory, Third Party Advisory)
- github.com/ImageMagick/ImageMagick/issues/713 (Exploit, Patch, Third Party Advisory, Issue Tracking)
- lists.debian.org/debian-lts-announce/2019/05/msg00015.html (mailing-list, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2020/09/msg00007.html (mailing-list, Third Party Advisory)
- github.com/ImageMagick/ImageMagick/commit/50f54462076648ac2e36c3f58f4dadd4babbf… (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.