CVE-2004-0958

PHP < 5.0.2 - Memory Contents Exposure via GPC Variables Ending in Open Bracket

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2004-0958. PoCs published by Stefano Di Paola.

AI-analyzed exploit summary This exploit leverages a memory disclosure vulnerability in PHP's array parsing functions by sending a crafted URI parameter to a PHP script that prints user-supplied data. The vulnerability allows an attacker to read regions of process memory by manipulating the parsing function.

Description

php_variables.c in PHP before 5.0.2 allows remote attackers to read sensitive memory contents via (1) GET, (2) POST, or (3) COOKIE GPC variables that end in an open bracket character, which causes PHP to calculate an incorrect string length.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Stefano Di Paola · textremotephp
https://www.exploit-db.com/exploits/24656

This exploit leverages a memory disclosure vulnerability in PHP's array parsing functions by sending a crafted URI parameter to a PHP script that prints user-supplied data. The vulnerability allows an attacker to read regions of process memory by manipulating the parsing function.

Classification
Working Poc 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: PHP versions 4.2.0 and subsequent
No auth needed
Prerequisites: A PHP script that prints user-supplied data (e.g., phpinfo.php or a script using print_r($_REQUEST)) · Ability to send crafted HTTP requests to the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (8)

Core 8
Core References
Third Party Advisory mailing-list x_refsource_vulnwatch
http://archives.neohapsis.com/archives/vulnwatch/2004-q3/0053.html
Mailing List mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=109527531130492&w=2
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/12560/
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://securitytracker.com/id?1011279
Issue Tracking vendor-advisory x_refsource_fedora
https://bugzilla.fedora.us/show_bug.cgi?id=2344
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/17393
Third Party Advisory, VDB Entry vdb-entry signature x_refsource_oval
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10863
Patch, Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2004-687.html

Scores

EPSS 0.0973
EPSS Percentile 94.9%

Details

Status published
Products (1)
php/php < 5.0.2
Published Nov 03, 2004
Tracked Since Feb 18, 2026