PHP up to 4.4.4 malloc zip_read_entry integer coercion

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 was found in PHP up to 4.4.4. It has been classified as critical. Affected by this vulnerability is the function zip_read_entry of the component malloc. The manipulation leads to integer coercion. This vulnerability is referenced as CVE-2007-1777. Furthermore, an exploit is available. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability was found in PHP up to 4.4.4 (Programming Language Software) and classified as critical. This issue affects the function zip_read_entry of the component malloc. The manipulation with an unknown input leads to a integer coercion vulnerability. Using CWE to declare the problem leads to CWE-192. Integer coercion refers to a set of flaws pertaining to the type casting, extension, or truncation of primitive data types. Impacted is confidentiality, integrity, and availability. The summary by CVE is:

Integer overflow in the zip_read_entry function in PHP 4 before 4.4.5 allows remote attackers to execute arbitrary code via a ZIP archive that contains an entry with a length value of 0xffffffff, which is incremented before use in an emalloc call, triggering a heap overflow.

The bug was discovered 03/27/2007. The weakness was published 03/29/2007 by Stefan Esser (Website). It is possible to read the advisory at debian.org. The identification of this vulnerability is CVE-2007-1777 since 03/29/2007. The exploitation is known to be easy. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details as well as a public exploit are known.

The exploit is available at securityfocus.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 2 days. During that time the estimated underground price was around $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 25099 (Debian DSA-1282-1 : php4 - several vulnerabilities), 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.

Upgrading to version 4.4.5 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 X-Force (33652), Exploit-DB (29788), Tenable (25099), SecurityFocus (BID 23169†) and OSVDB (33949†). Similar entries are available at VDB-35872, VDB-35694 and VDB-35446. Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

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: Integer coercion
CWE: CWE-192 / CWE-189
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 25099
Nessus Name: Debian DSA-1282-1 : php4 - several vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 58334
OpenVAS Name: Debian Security Advisory DSA 1282-1 (php4)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Upgrade: PHP 4.4.5

Timelineinfo

03/27/2007 🔍
03/27/2007 +0 days 🔍
03/27/2007 +0 days 🔍
03/29/2007 +2 days 🔍
03/29/2007 +0 days 🔍
03/29/2007 +0 days 🔍
04/10/2007 +12 days 🔍
04/26/2007 +16 days 🔍
04/30/2007 +4 days 🔍
04/30/2007 +0 days 🔍
03/13/2015 +2874 days 🔍
04/19/2025 +3690 days 🔍

Sourcesinfo

Product: php.org

Advisory: debian.org
Researcher: Stefan Esser
Status: Confirmed

CVE: CVE-2007-1777 (🔍)
GCVE (CVE): GCVE-0-2007-1777
GCVE (VulDB): GCVE-100-35915

OVAL: 🔍

X-Force: 33652
SecurityFocus: 23169 - PHP Zip_Entry_Read() Integer Overflow Vulnerability
Secunia: 25025 - Debian update for php4, Moderately Critical
OSVDB: 33949 - CVE-2007-1777 - PHP - Integer Overflow Issue
Vulnerability Center: 14778 - PHP zip_read_entry Function Integer Overflow via Malicious ZIP Archive, High

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

Entryinfo

Created: 03/13/2015 12:16
Updated: 04/19/2025 21:41
Changes: 03/13/2015 12:16 (83), 07/17/2019 12:50 (5), 04/19/2025 21:41 (19)
Complete: 🔍
Cache ID: 216:968:103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!