PHP up to 5.3.26 ext/xml/xml.c xml_parse_into_struct memory corruption
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 9.0 | $0-$5k | 0.00 |
Summary
A vulnerability has been found in PHP and classified as problematic. This affects the function xml_parse_into_struct of the file ext/xml/xml.c. This manipulation causes memory corruption.
This vulnerability appears as CVE-2013-4113. In addition, an exploit is available.
The affected component should be upgraded.
Details
A vulnerability classified as critical was found in PHP (Programming Language Software). Affected by this vulnerability is the function xml_parse_into_struct of the file ext/xml/xml.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:
ext/xml/xml.c in PHP before 5.3.27 does not properly consider parsing depth, which allows remote attackers to cause a denial of service (heap memory corruption) or possibly have unspecified other impact via a crafted document that is processed by the xml_parse_into_struct function.
The weakness was presented 07/10/2013 as 65236 as not defined bug report (Website). It is possible to read the advisory at bugs.php.net. This vulnerability is known as CVE-2013-4113 since 06/12/2013. The exploitation appears to be difficult. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details and also a public exploit are known.
It is declared as proof-of-concept. We expect the 0-day to have been worth approximately $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 68973 (Fedora 19 : php-5.5.0-2.fc19 (2013-12977)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 43551 (Juniper JUNOS J-Web: Multiple Vulnerabilities (JSA10804)).
Upgrading to version 5.3.27 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at git.php.net. The best possible mitigation is suggested to be upgrading to the latest version. A possible mitigation has been published 1 days after the disclosure of the vulnerability. Furthermore it is possible to detect and prevent this kind of attack with TippingPoint and the filter 13198.
The vulnerability is also documented in the databases at X-Force (85584), Tenable (68973), SecurityFocus (BID 60731†), OSVDB (95152†) and Secunia (SA54069†). See VDB-5786, VDB-9021 and VDB-11512 for similar entries. Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Product
Type
Name
Version
- 5.3.0
- 5.3.1
- 5.3.2
- 5.3.3
- 5.3.4
- 5.3.5
- 5.3.6
- 5.3.7
- 5.3.8
- 5.3.9
- 5.3.10
- 5.3.11
- 5.3.12
- 5.3.13
- 5.3.14
- 5.3.15
- 5.3.16
- 5.3.17
- 5.3.18
- 5.3.19
- 5.3.20
- 5.3.21
- 5.3.22
- 5.3.23
- 5.3.24
- 5.3.25
- 5.3.26
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 10.0VulDB Meta Temp Score: 9.0
VulDB Base Score: 10.0
VulDB Temp Score: 9.0
VulDB Vector: 🔍
VulDB Reliability: 🔍
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: 🔍
Access: Public
Status: Proof-of-Concept
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 68973
Nessus Name: Fedora 19 : php-5.5.0-2.fc19 (2013-12977)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍
OpenVAS ID: 892723
OpenVAS Name: Debian Security Advisory DSA 2723-1 (php5 - heap corruption
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: 🔍
Upgrade: PHP 5.3.27
Patch: git.php.net
TippingPoint: 🔍
McAfee IPS: 🔍
McAfee IPS Version: 🔍
Fortigate IPS: 🔍
Timeline
06/06/2013 🔍06/12/2013 🔍
07/10/2013 🔍
07/11/2013 🔍
07/12/2013 🔍
07/13/2013 🔍
07/17/2013 🔍
07/19/2013 🔍
04/14/2014 🔍
07/28/2014 🔍
05/18/2021 🔍
Sources
Product: php.orgAdvisory: 65236
Status: Not defined
Confirmation: 🔍
CVE: CVE-2013-4113 (🔍)
GCVE (CVE): GCVE-0-2013-4113
GCVE (VulDB): GCVE-100-9523
OVAL: 🔍
IAVM: 🔍
X-Force: 85584
SecurityFocus: 60731 - PHP Calendar Extension 'SndToJewish()' Remote Denial of Service Vulnerability
Secunia: 54069 - PHP XML Parsing Buffer Overflow Vulnerability, Moderately Critical
OSVDB: 95152
Vulnerability Center: 45634 - PHP 5.3 - 5.3.26 Remote DoS and Arbitrary Code Execution via Crafted XML File, Medium
See also: 🔍
Entry
Created: 07/17/2013 14:40Updated: 05/18/2021 18:39
Changes: 07/17/2013 14:40 (85), 06/03/2017 07:35 (11), 05/18/2021 18:39 (2)
Complete: 🔍
Committer:
Cache ID: 216::103
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.