Heap-based buffer overflow in PHP - CVE-2007-1777

 

Heap-based buffer overflow in PHP - CVE-2007-1777

Published: October 30, 2018 / Updated: June 9, 2025


Vulnerability identifier: #VU110419
CSH Severity: Medium
CVSS v4.0:
CVE-ID: CVE-2007-1777
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: PHP Group
Affected software:
PHP

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in Integer overflow in the zip_read_entry function in PHP 4 before 4.4.5. A remote attacker can use a ZIP archive that contains an entry with a length value of 0xffffffff to trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


How to mitigate CVE-2007-1777

Install update from vendor's website.

Sources