CVE-2017-14173Integer Overflow or Wraparound in Imagemagick

Severity
6.5MEDIUMNVD
EPSS
1.4%
top 19.55%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedSep 7
Latest updateMay 13

Description

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HExploitability: 2.8 | Impact: 3.6

Affected Packages3 packages

debiandebian/imagemagick< imagemagick 8:6.9.9.34+dfsg-3 (bookworm)
Debianimagemagick/imagemagick< 8:6.9.9.34+dfsg-3+3

Also affects: Debian Linux 8.0, 9.0, Ubuntu Linux 14.04, 16.04, 17.10, 18.04

Patches

🔴Vulnerability Details

2
GHSA
GHSA-gmpq-cwfx-xxr2: In the function ReadTXTImage() in coders/txt2022-05-13
OSV
CVE-2017-14173: In the function ReadTXTImage() in coders/txt2017-09-07

📋Vendor Advisories

3
Ubuntu
ImageMagick vulnerabilities2018-06-12
Red Hat
ImageMagick: Integer overflow in the function ReadTXTImage()2017-09-07
Debian
CVE-2017-14173: imagemagick - In the function ReadTXTImage() in coders/txt.c in ImageMagick 7.0.6-10, an integ...2017

💬Community

2
Bugzilla
CVE-2017-14173 ImageMagick: Integer overflow in the function ReadTXTImage()2017-09-08
Bugzilla
CVE-2017-14060 CVE-2017-14172 CVE-2017-14173 CVE-2017-14174 CVE-2017-14175 CVE-2017-14224 CVE-2017-14248 CVE-2017-14249 CVE-2017-14324 CVE-2017-14325 CVE-2017-14326 CVE-2017-14400 ImageMagick: various2017-09-06