CVE-2007-1701

PHP 4.0.0-4.4.4 - Remote Code Execution via Session Data Deserialization

Title source: llm
STIX 2.1

Exploitation Summary

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

AI-analyzed exploit summary This exploit targets a PHP session_decode() vulnerability (CVE-2007-1701) by manipulating session data to overwrite memory and execute shellcode. It uses a heap spray technique and leverages the substr_compare() vulnerability to locate offsets for precise memory corruption.

Description

PHP 4 before 4.4.5, and PHP 5 before 5.2.1, when register_globals is enabled, allows context-dependent attackers to execute arbitrary code via deserialization of session data, which overwrites arbitrary global variables, as demonstrated by calling session_decode on a string beginning with "_SESSION|s:39:".

Exploits (1)

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

This exploit targets a PHP session_decode() vulnerability (CVE-2007-1701) by manipulating session data to overwrite memory and execute shellcode. It uses a heap spray technique and leverages the substr_compare() vulnerability to locate offsets for precise memory corruption.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Racy
Target: PHP (versions affected by CVE-2007-1701)
No auth needed
Prerequisites: PHP with vulnerable session_decode() function · Ability to control session data
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (12)

Core 12
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/23120
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/1991
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/33658
Third Party Advisory vendor-advisory x_refsource_gentoo
http://security.gentoo.org/glsa/glsa-200705-19.xml
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/2374
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25423
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25850
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25445
Third Party Advisory x_refsource_misc
http://www.php-security.org/MOPB/MOPB-31-2007.html

Scores

EPSS 0.0923
EPSS Percentile 94.7%

Details

CWE
CWE-502
Status published
Products (1)
php/php 4.0.0 - 4.4.5
Published Mar 27, 2007
Tracked Since Feb 18, 2026