CVE-2007-1484

PHP <4.4.6 & <5.2.1 - Code Injection

Title source: llm
STIX 2.1

Exploitation Summary

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

AI-analyzed exploit summary This exploit targets a vulnerability in PHP 4/5's array_user_key_compare() function, leveraging a ZVAL destructor issue to achieve remote code execution. It uses a crafted array and shellcode to trigger a memory corruption vulnerability.

Description

The array_user_key_compare function in PHP 4.4.6 and earlier, and 5.x up to 5.2.1, makes erroneous calls to zval_dtor, which triggers memory corruption and allows local users to bypass safe_mode and execute arbitrary code via a certain unset operation after array_user_key_compare has been called.

Exploits (1)

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

This exploit targets a vulnerability in PHP 4/5's array_user_key_compare() function, leveraging a ZVAL destructor issue to achieve remote code execution. It uses a crafted array and shellcode to trigger a memory corruption vulnerability.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: PHP 4/5
No auth needed
Prerequisites: PHP 4/5 installation with vulnerable array_user_key_compare() function
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (16)

Core 16
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/22990
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 third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24542
Mailing List, Third Party Advisory 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
Exploit, Third Party Advisory x_refsource_misc
http://www.php-security.org/MOPB/MOPB-24-2007.html
Third Party Advisory x_refsource_confirm
http://us2.php.net/releases/4_4_7.php
Third Party Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/usn-455-1
Third Party Advisory x_refsource_confirm
http://us2.php.net/releases/5_2_2.php
Third Party Advisory x_refsource_confirm
http://docs.info.apple.com/article.html?artnum=306172
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/25159
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25445
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25057
Broken Link vendor-advisory x_refsource_suse
http://www.novell.com/linux/security/advisories/2007_32_php.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26235

Scores

EPSS 0.0111
EPSS Percentile 61.6%

Details

Status published
Products (1)
php/php < 4.4.6
Published Mar 16, 2007
Tracked Since Feb 18, 2026