Back to CVE catalog

AI summary

ThinkPHP 2.0 through 2.2 and 3.0 in Lite mode has an eval injection flaw in PATH_INFO parsing, where preg_replace with the /e modifier evaluates input. Unauthenticated attackers can send crafted requests to index.php with a malicious 's' parameter containing PHP expressions to execute arbitrary code on the server.

Generated automatically from the source description. Check the sources below before acting.

CVE-2012-20007

Eval injection in ThinkPHP Dispatcher PATH_INFO parsing

TopThink ThinkPHP

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v4.0

9.3Critical
Published:
Updated:
EPSS:
0.526%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:TopThinkThinkPHPAffected versions:
≥ 2.0, ≤ 2.2Show full version range for ThinkPHP
3.0
Vendor:ThinkphpThinkPHPAffected versions:
3.0Show full version range for ThinkPHP
2.0 ≤2.2

1–2 of 2 · Page 1 of 1

CVSS scores and metrics5
VulnCheck · CVE List / CNA (cna)Primary9.3 / 10CriticalCVSS 4.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Attack requirements
None
Subsequent confidentiality
None
Subsequent integrity
None
Subsequent availability
None

Source 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
[email protected] · NVD (Secondary)9.3 / 10CriticalCVSS 4.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Attack requirements
None
Subsequent confidentiality
None
Subsequent integrity
None
Subsequent availability
None

Source 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
ENISA · ENISA EUVD (aggregator)9.3 / 10CriticalCVSS 4.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Attack requirements
None
Subsequent confidentiality
None
Subsequent integrity
None
Subsequent availability
None

Source 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
VulnCheck · CVE List / CNA (cna)9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
[email protected] · NVD (Secondary)9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories8

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences