CPython 2.7.13 stringobject.c PyString_DecodeEscape memory corruption
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 8.4 | $0-$5k | 0.00 |
Summary
A vulnerability was found in CPython 2.7.13. It has been rated as critical. This vulnerability affects the function PyString_DecodeEscape of the file stringobject.c. This manipulation causes memory corruption.
This vulnerability is registered as CVE-2017-1000158. Remote exploitation of the attack is possible. No exploit is available.
Upgrading the affected component is advised.
Details
A vulnerability classified as critical was found in CPython 2.7.13 (Programming Language Software). Affected by this vulnerability is the function PyString_DecodeEscape of the file stringobject.c. The manipulation with an unknown input leads to a memory corruption vulnerability. The CWE definition for the vulnerability is CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:
CPython (aka Python) up to 2.7.13 is vulnerable to an integer overflow in the PyString_DecodeEscape function in stringobject.c, resulting in heap-based buffer overflow (and possible arbitrary code execution)
The bug was discovered 06/18/2017. The weakness was published 11/17/2017 (Website). The advisory is shared at bugs.python.org. This vulnerability is known as CVE-2017-1000158 since 11/16/2017. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details are known, but no exploit is available.
The vulnerability was handled as a non-public zero-day exploit for at least 152 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 104749 (Debian DLA-1190-1 : python2.6 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 176496 (Debian Security Update for python3.5 (DSA 4307-1)).
Upgrading eliminates this vulnerability. A possible mitigation has been published 1 weeks after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at Tenable (104749) and SecurityFocus (BID 105396†). Similar entries are available at VDB-113041, VDB-119652, VDB-119653 and VDB-124167. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Product
Type
Name
Version
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 8.5VulDB Meta Temp Score: 8.4
VulDB Base Score: 7.3
VulDB Temp Score: 7.0
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: Memory corruptionCWE: 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: 104749
Nessus Name: Debian DLA-1190-1 : python2.6 security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 100021
OpenVAS Name: Fedora Update for python26 FEDORA-2017-2d441a1d98
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: 🔍
Timeline
06/18/2017 🔍11/16/2017 🔍
11/17/2017 🔍
11/17/2017 🔍
11/18/2017 🔍
11/24/2017 🔍
11/27/2017 🔍
09/22/2018 🔍
01/10/2023 🔍
Sources
Advisory: DLA 1189-1Researcher: The Python Security Response Team.
Status: Confirmed
CVE: CVE-2017-1000158 (🔍)
GCVE (CVE): GCVE-0-2017-1000158
GCVE (VulDB): GCVE-100-109585
OVAL: 🔍
SecurityFocus: 105396 - Python CVE-2018-14647 Remote Denial of Service Vulnerability
SecurityTracker: 1039890
See also: 🔍
Entry
Created: 11/18/2017 08:43Updated: 01/10/2023 15:11
Changes: 11/18/2017 08:43 (75), 12/07/2019 19:56 (6), 01/24/2021 11:00 (2), 01/24/2021 11:07 (1), 01/10/2023 15:11 (3)
Complete: 🔍
Cache ID: 216:EA4: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.