CVE-2007-5416

CVE-2007-5416 is a medium-severity vulnerability in Drupal with a CVSS 2.0 base score of 6.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-189.

Key facts

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.

Frequently asked questions

What is CVE-2007-5416?
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.
How severe is CVE-2007-5416?
CVE-2007-5416 has a CVSS 2.0 base score of 6.8, rated medium severity.
Is CVE-2007-5416 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 4% (90th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2007-5416?
CVE-2007-5416 affects Drupal. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2007-5416?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2007-5416 published?
CVE-2007-5416 was published on 2007-10-12 and last updated on 2026-06-16.

References

Affected products (1)

More vulnerabilities in Drupal

All CVEs affecting Drupal →

Other CWE-189 (Numeric Errors) vulnerabilities

Browse all CWE-189 (Numeric Errors) vulnerabilities →