CVE-2007-1583

PHP 4.0.0-4.4.6 & 5.0.0-5.2.1 - Code Injection

Title source: llm
STIX 2.1

Exploitation Summary

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

AI-analyzed exploit summary This exploit leverages a memory-limit exception in PHP's mb_parse_str() to activate register_globals, potentially enabling further exploitation of latent vulnerabilities. It works by exhausting memory and triggering the exception.

Description

The mb_parse_str function in PHP 4.0.0 through 4.4.6 and 5.0.0 through 5.2.1 sets the internal register_globals flag and does not disable it in certain cases when a script terminates, which allows remote attackers to invoke available PHP scripts with register_globals functionality that is not detectable by these scripts, as demonstrated by forcing a memory_limit violation.

Exploits (1)

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

This exploit leverages a memory-limit exception in PHP's mb_parse_str() to activate register_globals, potentially enabling further exploitation of latent vulnerabilities. It works by exhausting memory and triggering the exception.

Classification
Working Poc 95%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: PHP 4 to 4.4.6 and 5 to 5.2.1
No auth needed
Prerequisites: PHP with mb_parse_str() function enabled · Memory limit set in PHP configuration
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (30)

Core 30
Core References
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/466166/100/0/threaded
Third Party Advisory, VDB Entry vdb-entry signature x_refsource_oval
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10245
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2007-0162.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/23016
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:090
Release Notes x_refsource_confirm
http://us2.php.net/releases/4_4_7.php
Release Notes x_refsource_confirm
http://us2.php.net/releases/5_2_2.php
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/2732
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25056
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2007/dsa-1283
Mailing List vendor-advisory x_refsource_apple
http://lists.apple.com/archives/security-announce//2007/Jul/msg00004.html
Third Party Advisory vendor-advisory x_refsource_gentoo
http://security.gentoo.org/glsa/glsa-200705-19.xml
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25062
Vendor Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/usn-455-1
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24909
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24945
Issue Tracking x_refsource_confirm
https://issues.rpath.com/browse/RPL-1268
Vendor Advisory x_refsource_confirm
http://docs.info.apple.com/article.html?artnum=306172
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24924
Vendor Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2007-0155.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24965
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/25159
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:089
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25445
Vendor Advisory x_refsource_misc
http://www.php-security.org/MOPB/MOPB-26-2007.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25057
Vendor Advisory vendor-advisory x_refsource_suse
http://www.novell.com/linux/security/advisories/2007_32_php.html
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:088
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26235
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2007-0153.html

Scores

EPSS 0.0524
EPSS Percentile 91.5%

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 Mar 21, 2007
Tracked Since Feb 18, 2026