CVE-2017-14173: canonical ubuntu_linux Integer Overflow or Wraparound
Vulnerability summary
CVE-2017-14173 is a medium (CVSS 6.5) Integer Overflow or Wraparound vulnerability in canonical ubuntu_linux. EPSS estimates a 1.94% chance of exploitation in the next 30 days, higher than 79.7% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 6 · Related 3Timeline
- 07-09-2017PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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 metrics
5 scores · 3 sources · 3 versions- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.94%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
0.00 pp
From 1.94% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundImagemagick
Maturity: poc
Weaknesses
CWE · root cause- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
- CWE-835Loop with Unreachable Exit Condition ('Infinite Loop')The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.
Affected systems
Debian2 products
- imagemagick< 8:6.9.9.34+dfsg-3
- debian_linuxEOL8.0 | 9.0
Canonical1 product
- ubuntu_linuxEOL14.04 | 16.04 | 17.10 | 18.04
Imagemagick1 product
- imagemagick7.0.6-10
Ubuntu1 product
- imagemagick< 8:6.7.7.10-6ubuntu3.11 | < 8:6.8.9.9-7ubuntu5.11 | < 8:6.9.7.4+dfsg-16ubuntu6.2
4 vendors · 5 products
References
10 links- github.com/ImageMagick/ImageMagick/issues/713X Refsource CONFIRMExploitIssue TrackingPatchThird Party Advisory
- lists.debian.org/debian-lts-announce/2019/05/msg00015.htmlMailing ListX Refsource MLISTThird Party Advisory
- lists.debian.org/debian-lts-announce/2020/09/msg00007.htmlMailing ListX Refsource MLISTThird Party Advisory
- github.com/ImageMagick/ImageMagick/commit/50f54462076648ac2e36c3f58f4dadd4babbf1c9X Refsource CONFIRMPatchVendor Advisory