CVE-2007-1777

PHP 4 - Remote Code Execution via ZIP Archive Entry Length Overflow

Title source: manual
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-1777. PoCs published by Stefan Esser.

AI-analyzed exploit summary This exploit targets an integer overflow vulnerability in PHP's zip_entry_read() function, leading to a heap-based buffer overflow. It manipulates memory by creating and unsetting arrays to trigger the overflow, potentially allowing arbitrary code execution.

Description

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.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Stefan Esser · phpremotephp
https://www.exploit-db.com/exploits/29788

This exploit targets an integer overflow vulnerability in PHP's zip_entry_read() function, leading to a heap-based buffer overflow. It manipulates memory by creating and unsetting arrays to trigger the overflow, potentially allowing arbitrary code execution.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Theoretical
Target: PHP versions prior to 4.4.5
No auth needed
Prerequisites: A vulnerable PHP installation · Ability to execute PHP code on the target system
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (8)

Core 8
Core References
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2007/dsa-1283
Exploit, Vendor Advisory x_refsource_misc
http://www.php-security.org/MOPB/MOPB-35-2007.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25062
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/23169
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/33652
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2007/dsa-1282
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2008:130
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25025

Scores

EPSS 0.1533
EPSS Percentile 96.4%

Details

Status published
Products (43)
php/php 3.0
php/php 3.0.1
php/php 3.0.2
php/php 3.0.3
php/php 3.0.4
php/php 3.0.5
php/php 3.0.6
php/php 3.0.7
php/php 3.0.8
php/php 3.0.9
... and 33 more
Published Mar 30, 2007
Tracked Since Feb 18, 2026