CVE-2007-5416

Drupal < 5.2 - Remote Code Execution via Callback Parameter Hash Collision

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-5416. PoCs published by ShAnKaR.

AI-analyzed exploit summary This exploit leverages a PHP Zend Hash vulnerability in Drupal <= 5.2 to execute arbitrary PHP code via crafted URL parameters, specifically targeting the `drupal_eval` callback.

Description

Drupal 5.2 and earlier does not properly unset variables when the input data includes a numeric parameter with a value matching an alphanumeric parameter's hash value, which allows remote attackers to execute arbitrary PHP code by invoking the drupal_eval function through a callback parameter to the default URI, as demonstrated by the _menu[callbacks][1][callback] parameter. NOTE: it could be argued that this vulnerability is due to a bug in the unset PHP command (CVE-2006-3017) and the proper fix should be in PHP; if so, then this should not be treated as a vulnerability in Drupal.

Exploits (1)

exploitdb WORKING POC VERIFIED
by ShAnKaR · textwebappsphp
https://www.exploit-db.com/exploits/4510

This exploit leverages a PHP Zend Hash vulnerability in Drupal <= 5.2 to execute arbitrary PHP code via crafted URL parameters, specifically targeting the `drupal_eval` callback.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Drupal <= 5.2
No auth needed
Prerequisites: Target running Drupal <= 5.2 with vulnerable PHP configuration
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (4)

Core 4
Core References
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/482006/100/0/threaded
Third Party Advisory third-party-advisory x_refsource_sreason
http://securityreason.com/securityalert/3216
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/4510

Scores

EPSS 0.0442
EPSS Percentile 90.1%

Details

CWE
CWE-189
Status published
Products (1)
drupal/drupal < 5.2
Published Oct 12, 2007
Tracked Since Feb 18, 2026