GD Graphics Library up to 5.6.30 gd_gif_in.c gdImageCreateFromGifCtx GIF Image information disclosure
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.8 | $0-$5k | 0.00 |
Summary
A vulnerability has been found in GD Graphics Library up to 5.6.30 and classified as critical. The impacted element is the function gdImageCreateFromGifCtx of the file gd_gif_in.c. Performing a manipulation as part of GIF Image results in information disclosure.
This vulnerability was named CVE-2017-7890. The attack may be initiated remotely. There is no available exploit.
The affected component should be upgraded.
Details
A vulnerability was found in GD Graphics Library up to 5.6.30 (Image Processing Software). It has been classified as critical. This affects the function gdImageCreateFromGifCtx of the file gd_gif_in.c. The manipulation as part of a GIF Image leads to a information disclosure vulnerability. CWE is classifying the issue as CWE-200. The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:
The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in.c in the GD Graphics Library (aka libgd), as used in PHP before 5.6.31 and 7.x before 7.1.7, does not zero colorMap arrays before use. A specially crafted GIF image could use the uninitialized tables to read ~700 bytes from the top of the stack, potentially disclosing sensitive information.
The bug was discovered 04/13/2017. The weakness was presented 08/02/2017 by Matviy Kotoniy (Website). The advisory is shared at php.net. This vulnerability is uniquely identified as CVE-2017-7890 since 04/17/2017. The exploitability is told to be easy. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details are known, but no exploit is available. MITRE ATT&CK project uses the attack technique T1592 for this issue.
The vulnerability was handled as a non-public zero-day exploit for at least 84 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 101525 (PHP 5.6.x < 5.6.31 Multiple Vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CGI abuses and running in the context r. The commercial vulnerability scanner Qualys is able to test this issue with plugin 351055 (Amazon Linux Security Advisory for php70: ALAS-2017-867).
Upgrading to version 5.6.31 eliminates this vulnerability. A possible mitigation has been published even before and not after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at Tenable (101525) and SecurityFocus (BID 99492†). See VDB-67396, VDB-67398, VDB-67420 and VDB-67724 for similar entries. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Product
Type
Name
Version
- 5.6.0
- 5.6.1
- 5.6.2
- 5.6.3
- 5.6.4
- 5.6.5
- 5.6.6
- 5.6.7
- 5.6.8
- 5.6.9
- 5.6.10
- 5.6.11
- 5.6.12
- 5.6.13
- 5.6.14
- 5.6.15
- 5.6.16
- 5.6.17
- 5.6.18
- 5.6.19
- 5.6.20
- 5.6.21
- 5.6.22
- 5.6.23
- 5.6.24
- 5.6.25
- 5.6.26
- 5.6.27
- 5.6.28
- 5.6.29
- 5.6.30
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.9VulDB Meta Temp Score: 6.8
VulDB Base Score: 7.3
VulDB Temp Score: 7.0
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: Information disclosureCWE: CWE-200 / CWE-284 / CWE-266
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: 101525
Nessus Name: PHP 5.6.x < 5.6.31 Multiple Vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 53676
OpenVAS Name: Debian Security Advisory DSA 3938-1 (libgd2 - security update)
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: GD Graphics Library 5.6.31
Timeline
04/13/2017 🔍04/17/2017 🔍
07/06/2017 🔍
07/10/2017 🔍
07/13/2017 🔍
08/02/2017 🔍
08/02/2017 🔍
08/03/2017 🔍
12/14/2022 🔍
Sources
Advisory: RHSA-2018:0406Researcher: Matviy Kotoniy
Status: Not defined
Confirmation: 🔍
CVE: CVE-2017-7890 (🔍)
GCVE (CVE): GCVE-0-2017-7890
GCVE (VulDB): GCVE-100-104793
OVAL: 🔍
SecurityFocus: 99492 - PHP 'gd_gif_in.c' Memory Corruption Vulnerability
See also: 🔍
Entry
Created: 08/03/2017 10:44Updated: 12/14/2022 16:10
Changes: 08/03/2017 10:44 (81), 11/03/2019 13:10 (3), 12/14/2022 16:10 (4)
Complete: 🔍
Cache ID: 216::103
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
No comments yet. Languages: en.
Please log in to comment.