CVE-2007-1835

PHP <4.4.5 & <5.2.1 - Info Disclosure

Title source: llm
STIX 2.1

Exploitation Summary

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

AI-analyzed exploit summary This exploit bypasses PHP's 'open_basedir' restriction by manipulating session save paths and environment variables, allowing unauthorized file access or writing in shared hosting environments. It leverages a design error in PHP versions 4.4.6 and 5.2.1.

Description

PHP 4 before 4.4.5 and PHP 5 before 5.2.1, when using an empty session save path (session.save_path), uses the TMPDIR default after checking the restrictions, which allows local users to bypass open_basedir restrictions.

Exploits (1)

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

This exploit bypasses PHP's 'open_basedir' restriction by manipulating session save paths and environment variables, allowing unauthorized file access or writing in shared hosting environments. It leverages a design error in PHP versions 4.4.6 and 5.2.1.

Classification
Working Poc 90%
Attack Type
Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: PHP 4 up to 4.4.6, PHP 5 up to 5.2.1
No auth needed
Prerequisites: PHP with 'open_basedir' restrictions enabled · Ability to execute arbitrary PHP code
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (9)

Core 9
Core References
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/1991
Various Sources x_refsource_misc
http://www.php-security.org/MOPB/MOPB-36-2007.html
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/2374
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/33550
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, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/23183

Scores

EPSS 0.0069
EPSS Percentile 47.9%

Details

Status published
Products (36)
php/php 4.0 (8 CPE variants)
php/php 4.0.0
php/php 4.0.1 (3 CPE variants)
php/php 4.0.2
php/php 4.0.3 (2 CPE variants)
php/php 4.0.4 (2 CPE variants)
php/php 4.0.5
php/php 4.0.6
php/php 4.0.7 (4 CPE variants)
php/php 4.1.0
... and 26 more
Published Apr 03, 2007
Tracked Since Feb 18, 2026