ImageMagick: Integer overflow in the function ReadTXTImage()
Published Sep 7, 2017
6.5
MEDIUMCVSS 3.1
EPSS 1.94%
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.
Affected products
No data.
Configuration 1
- 7.0.6-10
Configuration 2
- 14.04
- 16.04
- 17.10
- 18.04
- 8.0
- 9.0
No data.
Red Hat Enterprise Linux 5
ImageMagick
Will not fix
Red Hat Enterprise Linux 6
ImageMagick
Will not fix
Red Hat Enterprise Linux 7
ImageMagick
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | ImageMagick | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | ImageMagick | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | ImageMagick | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
AV:N/AC:M/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.94% (0.01939) | 79.38th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.94% (0.01939) | 77.42th | v5 (v2026.06.15) |
| Mar 30, 2025 | 1.40% (0.01402) | 78.67th | v4 (v2025.03.14) |
| Mar 29, 2025 | 2.84% (0.02839) | 77.00th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.40% (0.01402) | 79.13th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.41% (0.00411) | 74.75th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.41% (0.00411) | 73.25th | v3 (v2023.03.01) |
| Sep 3, 2023 | 0.41% (0.00411) | 70.66th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.34% (0.00335) | 66.66th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.11% (0.01108) | 55.18th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.11% (0.01108) | 29.61th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.45% (0.01454) | 32.67th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.45% (0.01454) | 0.00th | v1 |
References (10)
- https://access.redhat.com/security/cve/CVE-2017-14173 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1489702 Issue Tracking
- https://github.com/ImageMagick/ImageMagick/commit/50f54462076648ac2e36c3f58f4dadd4babbf1c9 x_refsource_CONFIRMPatchVendor Advisory
- https://github.com/ImageMagick/ImageMagick/issues/713 x_refsource_CONFIRMExploitIssue TrackingPatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/05/msg00015.html mailing-listx_refsource_MLISTThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/09/msg00007.html mailing-listx_refsource_MLISTThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-14173
- https://security.gentoo.org/glsa/201711-07 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://usn.ubuntu.com/3681-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2017-14173
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2017-14173 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1489702 | Issue Tracking | |
| https://github.com/ImageMagick/ImageMagick/commit/50f54462076648ac2e36c3f58f4dadd4babbf1c9 | x_refsource_CONFIRMPatchVendor Advisory | |
| https://github.com/ImageMagick/ImageMagick/issues/713 | x_refsource_CONFIRMExploitIssue TrackingPatchThird Party Advisory | |
| https://lists.debian.org/debian-lts-announce/2019/05/msg00015.html | mailing-listx_refsource_MLISTThird Party Advisory | |
| https://lists.debian.org/debian-lts-announce/2020/09/msg00007.html | mailing-listx_refsource_MLISTThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-14173 | ||
| https://security.gentoo.org/glsa/201711-07 | vendor-advisoryx_refsource_GENTOOThird Party Advisory | |
| https://usn.ubuntu.com/3681-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2017-14173 |
Change history (0)
No recorded changes yet.