PHP 5.2.0/5.4.0/5.6 unserialize DateTime/DateTimeZone/DateInterval/DatePeriod use after free

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.6$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as critical, was found in PHP 5.2.0/5.4.0/5.6. This impacts the function unserialize. Executing a manipulation of the argument DateTime/DateTimeZone/DateInterval/DatePeriod can lead to use after free. This vulnerability is tracked as CVE-2015-0273. Moreover, an exploit is present. You should upgrade the affected component.

Detailsinfo

A vulnerability has been found in PHP 5.2.0/5.4.0/5.6 (Programming Language Software) and classified as critical. This vulnerability affects the function unserialize. The manipulation of the argument DateTime/DateTimeZone/DateInterval/DatePeriod with an unknown input leads to a use after free vulnerability. The CWE definition for the vulnerability is CWE-416. Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code. As an impact it is known to affect confidentiality, integrity, and availability.

The weakness was disclosed 02/20/2015 by Taoguang Chen as confirmed mailinglist post (Full-Disclosure). The advisory is shared for download at seclists.org. This vulnerability was named CVE-2015-0273 since 11/18/2014. The exploitation appears to be easy. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. Technical details and also a public exploit are known.

A public exploit has been developed by Taoguang Chen in PHP and been published 3 days after the advisory. It is possible to download the exploit at exploit-db.com. It is declared as proof-of-concept. As 0-day the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 81829 (Amazon Linux AMI : php54 (ALAS-2015-493) (GHOST)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Amazon Linux Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 13108 (PHP Multiple Remote Code Execution Vulnerabilities (GHOST)).

Upgrading to version 5.6.6, 5.5.22 or 5.4.38 eliminates this vulnerability. Furthermore it is possible to detect and prevent this kind of attack with TippingPoint and the filter 19390.

The vulnerability is also documented in the databases at X-Force (101192), Exploit-DB (36158), Tenable (81829), SecurityFocus (BID 72701†) and OSVDB (118589†). The entries VDB-73982, VDB-74064, VDB-74066 and VDB-78775 are pretty similar. VulDB is the best source for vulnerability data and more expert information about this specific topic.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.3
VulDB Meta Temp Score: 6.6

VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Use after free
CWE: CWE-416 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Author: Taoguang Chen
Programming Language: 🔍
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 81829
Nessus Name: Amazon Linux AMI : php54 (ALAS-2015-493) (GHOST)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍

OpenVAS ID: 14611
OpenVAS Name: Amazon Linux Local Check: alas-2015-494
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍
Exploit Delay Time: 🔍

Upgrade: PHP 5.6.6/5.5.22/5.4.38
Patch: 71335e6ebabc1b12c057d8017fd811892ecdfd24
TippingPoint: 🔍

McAfee IPS: 🔍
McAfee IPS Version: 🔍

Fortigate IPS: 🔍

Timelineinfo

11/18/2014 🔍
02/20/2015 +94 days 🔍
02/20/2015 +0 days 🔍
02/23/2015 +3 days 🔍
02/23/2015 +0 days 🔍
02/23/2015 +0 days 🔍
02/26/2015 +3 days 🔍
03/19/2015 +21 days 🔍
03/30/2015 +11 days 🔍
07/01/2015 +93 days 🔍
06/09/2024 +3266 days 🔍

Sourcesinfo

Product: php.org

Advisory: USN-2535-1
Researcher: Taoguang Chen
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2015-0273 (🔍)
GCVE (CVE): GCVE-0-2015-0273
GCVE (VulDB): GCVE-100-69232

OVAL: 🔍

X-Force: 101192 - PHP DateTime code execution
SecurityFocus: 72701 - PHP CVE-2015-0273 Use After Free Remote Code Execution Vulnerability
OSVDB: 118589
SecurityTracker: 1031945 - PHP DateTimeZone Use-After-Free Memory Error in unserialize() Lets Remote Users Execute Arbitrary Code
Vulnerability Center: 50810 - PHP 5.4 - 5.4.37, 5.5 - 5.5.21, 5.6 - 5.6.5 Remote Code Execution in unserialize() with DateTime, High

scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍

Entryinfo

Created: 02/26/2015 14:06
Updated: 06/09/2024 19:12
Changes: 02/26/2015 14:06 (89), 07/02/2017 12:09 (8), 03/10/2022 21:05 (6), 03/10/2022 21:16 (1), 03/10/2022 21:27 (1), 06/09/2024 19:12 (15)
Complete: 🔍
Cache ID: 216::103

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!