CVE-2004-1392

PHP 4.0 - Arbitrary File Read via cURL file: URL

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2004-1392. PoCs published by FraMe.

AI-analyzed exploit summary This exploit demonstrates a bypass of PHP's 'open_basedir' restriction via cURL by accessing arbitrary files using the 'file://' protocol. It leverages a vulnerability in the cURL module to read sensitive files like '/etc/parla' with web server privileges.

Description

PHP 4.0 with cURL functions allows remote attackers to bypass the open_basedir setting and read arbitrary files via a file: URL argument to the curl_init function.

Exploits (1)

exploitdb WORKING POC VERIFIED
by FraMe · phpremotephp
https://www.exploit-db.com/exploits/24711

This exploit demonstrates a bypass of PHP's 'open_basedir' restriction via cURL by accessing arbitrary files using the 'file://' protocol. It leverages a vulnerability in the cURL module to read sensitive files like '/etc/parla' with web server privileges.

Classification
Working Poc 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: PHP with cURL module (versions affected by CVE-2004-1392)
No auth needed
Prerequisites: Ability to execute PHP code on the target server · cURL module enabled in PHP
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (9)

Core 9
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/17900
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2005-406.html
Exploit, Patch vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/11557
Mailing List mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=110625060220934&w=2
Third Party Advisory, VDB Entry vdb-entry signature x_refsource_oval
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9279
Patch vendor-advisory x_refsource_fedora
https://bugzilla.fedora.us/show_bug.cgi?id=2344
Exploit vdb-entry x_refsource_sectrack
http://securitytracker.com/id?1011984
Mailing List mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=109898213806099&w=2
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2005-405.html

Scores

EPSS 0.1039
EPSS Percentile 95.1%

Details

Status published
Products (8)
php/php 4.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
php/php 4.0.5
php/php 4.0.6
php/php 4.0.7 (4 CPE variants)
Published Dec 31, 2004
Tracked Since Feb 18, 2026