CVE-2017-14173

medium
Published 2017-09-07 · Modified 2026-05-13
CVSS v3
6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS v2
4.3
VIR risk
6.5

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.

Predictions

Exploit likelihood
75%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2017-14173

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2017-14173.html

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://github.com/ImageMagick/ImageMagick/issues/713

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://github.com/ImageMagick/ImageMagick/commit/50f54462076648ac2e36c3f58f4dadd4babbf1c9

OS impact

OSVersionStatusFixed in
suse slesaffected
debian debianbookwormfixed8:6.9.9.34+dfsg-3
debian debianbullseyefixed8:6.9.9.34+dfsg-3
debian debianforkyfixed8:6.9.9.34+dfsg-3
debian debiansidfixed8:6.9.9.34+dfsg-3
debian debiantrixiefixed8:6.9.9.34+dfsg-3
debian debian8.0affected
debian debian9.0affected
ubuntu ubuntu14.04affected
ubuntu ubuntu16.04affected
ubuntu ubuntu17.10affected
ubuntu ubuntu18.04affected

Application impact

VendorProductVersionsFixed
imagemagickimagemagick7.0.6-10

References

CWEs

CWE-190 CWE-835

Verify integrity in audit chain (admin only). AS-IS.