CVE-2012-20007
published critical CVSS 4.0 · 9.3ThinkPHP 2.x / 3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFO
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| TopThink | — | ThinkPHP2.0 through 2.2 · 3.0 · Other versions: unknown | Affected | Not stated | VulnCheck |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| TopThink | ThinkPHP | 2.0 through 2.2 (affected · custom)3.0 (affected · custom)Default: unknown | VulnCheck · cna |
Weaknesses
1- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
References
4- Archived Researcher Disclosure http://web.archive.org/web/20140201221754/http://www.jb51.net:80/softjc/43550.html
- Nuclei Template https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-2-rce.yaml
- Vulhub Exploit https://github.com/vulhub/vulhub/tree/master/thinkphp/2-rce
- VulnCheck Advisory: ThinkPHP 2.x/3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFO https://www.vulncheck.com/advisories/thinkphp-2-x-3.0-lite-unauthenticated-rce-via-dispatcher-path-info
Provider assertions
2VulnCheck · cna
ThinkPHP 2.x / 3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFO
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ce4a16625305974031840737922d950bb90d7c7dc69f9cb44501b88aaebdd446
- Ingested
- 21 Nov 2026, 04:06:53 UTC
- Source record
- Official CVE record