CVE-2012-20007 PUBLISHED

ThinkPHP 2.x / 3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFO

Assigner: VulnCheck
Reserved: 11.11.2026 Published: 18.11.2026 Updated: 18.11.2026

ThinkPHP 2.0 through 2.2 and 3.0 Lite mode contains an eval injection vulnerability in the Dispatcher PATH_INFO parsing, which uses preg_replace with the /e modifier and a double-quoted replacement. Unauthenticated attackers can send crafted requests to index.php with a malicious 's' parameter containing PHP expressions to execute arbitrary code on the server. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-14.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 9.3

Product Status

Vendor TopThink
Product ThinkPHP
Versions Default: unknown
  • affected from 2.0 to 2.2 (incl.)
  • Version 3.0 is affected

Credits

  • The Shadowserver Foundation reporter

References

Problem Types

  • Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') CWE