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: []
CVE-ID: CVE-2007-1777
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

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.


Affected software

PHP

How to mitigate CVE-2007-1777

Install update from vendor's website.

PHP - addressed in versions 4.4.5, 4.10

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins