PHP up to 5.6.24/7.0.9 ext/gd/gd.c imagetruecolortopalette out-of-bounds write
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 9.6 | $0-$5k | 0.00 |
Summary
A vulnerability was found in PHP up to 5.6.24/7.0.9. It has been classified as problematic. This affects the function imagetruecolortopalette of the file ext/gd/gd.c. This manipulation causes out-of-bounds write.
This vulnerability is registered as CVE-2016-7126. Remote exploitation of the attack is possible. No exploit is available.
Upgrading the affected component is recommended.
Details
A vulnerability classified as critical was found in PHP up to 5.6.24/7.0.9 (Programming Language Software). Affected by this vulnerability is the function imagetruecolortopalette of the file ext/gd/gd.c. The manipulation with an unknown input leads to a out-of-bounds write vulnerability. The CWE definition for the vulnerability is CWE-787. The product writes data past the end, or before the beginning, of the intended buffer. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:
The imagetruecolortopalette function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 does not properly validate the number of colors, which allows remote attackers to cause a denial of service (select_colors allocation error and out-of-bounds write) or possibly have unspecified other impact via a large value in the third argument.
The weakness was published 09/12/2016 (Website). It is possible to read the advisory at openwall.com. This vulnerability is known as CVE-2016-7126 since 09/02/2016. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details of the vulnerability are known, but there is no available exploit.
The vulnerability scanner Nessus provides a plugin with the ID 93914 (Debian DSA-3689-1 : php5 - 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 169168 (SUSE Enterprise Linux Security Update for php53 (SUSE-SU-2016:2328-1)).
Upgrading to version 5.6.25 or 7.0.10 eliminates this vulnerability. A possible mitigation has been published 4 weeks after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at Tenable (93914) and SecurityFocus (BID 92755†). Similar entries are available at VDB-3695, VDB-5786, VDB-5794 and VDB-9021. Be aware that VulDB is the high quality source for 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
- 7.0.0
- 7.0.1
- 7.0.2
- 7.0.3
- 7.0.4
- 7.0.5
- 7.0.6
- 7.0.7
- 7.0.8
- 7.0.9
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 9.8VulDB Meta Temp Score: 9.6
VulDB Base Score: 9.8
VulDB Temp Score: 9.4
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 9.8
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: Out-of-bounds writeCWE: CWE-787 / CWE-119
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: 93914
Nessus Name: Debian DSA-3689-1 : php5 - security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 703689
OpenVAS Name: Debian Security Advisory DSA 3689-1 (php5 - security update)
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
Exposure Time: 🔍
Upgrade: PHP 5.6.25/7.0.10
Patch: github.com
Timeline
09/02/2016 🔍09/02/2016 🔍
09/11/2016 🔍
09/12/2016 🔍
09/12/2016 🔍
10/08/2016 🔍
10/10/2016 🔍
09/15/2022 🔍
Sources
Product: php.orgAdvisory: RHSA-2016:2750
Status: Not defined
Confirmation: 🔍
CVE: CVE-2016-7126 (🔍)
GCVE (CVE): GCVE-0-2016-7126
GCVE (VulDB): GCVE-100-91495
OVAL: 🔍
SecurityFocus: 92755 - PHP 'ext/gd/gd.c' Heap Based Buffer Overflow Vulnerability
SecurityTracker: 1036680
See also: 🔍
Entry
Created: 09/12/2016 17:53Updated: 09/15/2022 18:44
Changes: 09/12/2016 17:53 (68), 04/15/2019 16:35 (13), 09/15/2022 18:44 (6)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.