ImageMagick 7.0.6-10 coders/txt.c ReadTXTImage depth integer overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.0 | $0-$5k | 0.00 |
Summary
A vulnerability classified as critical has been found in ImageMagick 7.0.6-10. The affected element is the function ReadTXTImage of the file coders/txt.c. This manipulation of the argument depth causes integer overflow.
The identification of this vulnerability is CVE-2017-14173. It is possible to initiate the attack remotely. There is no exploit available.
It is recommended to upgrade the affected component.
Details
A vulnerability was found in ImageMagick 7.0.6-10 (Image Processing Software). It has been declared as critical. Affected by this vulnerability is the function ReadTXTImage of the file coders/txt.c. The manipulation of the argument depth with an unknown input leads to a integer overflow vulnerability. The CWE definition for the vulnerability is CWE-190. The 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 can introduce other weaknesses when the calculation is used for resource management or execution control. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:
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.
The bug was discovered 08/31/2017. The weakness was shared 09/07/2017 (GitHub Repository). The advisory is shared at github.com. This vulnerability is known as CVE-2017-14173 since 09/07/2017. The attack can be launched remotely. The exploitation doesn't need any form of authentication. It demands that the victim is doing some kind of user interaction. Technical details are known, but no exploit is available.
The vulnerability was handled as a non-public zero-day exploit for at least 7 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 103756 (Debian DLA-1131-1 : imagemagick security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 170610 (SUSE Enterprise Linux Security Update for ImageMagick (SUSE-SU-2017:3378-1)).
Upgrading eliminates this vulnerability. A possible mitigation has been published 2 months after the disclosure of the vulnerability.
The vulnerability is also documented in the vulnerability database at Tenable (103756). The entries VDB-104392, VDB-104640, VDB-104972 and VDB-105917 are related to this item. If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Product
Type
Name
Version
License
Website
- Product: https://www.imagemagick.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.4VulDB Meta Temp Score: 6.0
VulDB Base Score: 6.3
VulDB Temp Score: 5.6
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 6.5
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Integer overflowCWE: CWE-190 / CWE-189
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 103756
Nessus Name: Debian DLA-1131-1 : imagemagick security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 870971
OpenVAS Name: SuSE Update for ImageMagick openSUSE-SU-2017:3420-1 (ImageMagick)
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Patch: github.com
Timeline
08/31/2017 🔍09/07/2017 🔍
09/07/2017 🔍
09/07/2017 🔍
09/08/2017 🔍
10/10/2017 🔍
10/11/2017 🔍
12/28/2022 🔍
Sources
Product: imagemagick.orgAdvisory: 50f54462076648ac2e36c3f58f4dadd4babbf1c9
Status: Not defined
Confirmation: 🔍
CVE: CVE-2017-14173 (🔍)
GCVE (CVE): GCVE-0-2017-14173
GCVE (VulDB): GCVE-100-106189
See also: 🔍
Entry
Created: 09/08/2017 09:12Updated: 12/28/2022 08:23
Changes: 09/08/2017 09:12 (69), 11/13/2019 13:54 (10), 12/28/2022 08:20 (5), 12/28/2022 08:23 (1)
Complete: 🔍
Cache ID: 216::103
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
No comments yet. Languages: en.
Please log in to comment.