CVE-2022-47945
ThinkPHP Framework vulnerable to remote code execution
Record summary
CVE-2022-47945 has a selected CVSS score of 9.8 (critical); EIP currently links 1 Nuclei template.
Description
ThinkPHP Framework before 6.0.14 allows local file inclusion via the lang parameter when the language pack feature is enabled (lang_switch_on=true). An unauthenticated and remote attacker can exploit this to execute arbitrary operating system commands, as demonstrated by including pearcmd.php.
Exploitation context
Known exploitation
- VulnCheck KEV
- Listed · Apr 11, 2024 · VulnCheck
- Reported exploitation
- Observed · VulnCheck
Available material
- Nuclei templates
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Apr 15, 2025 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
ThinkPHPBrowse thinkphp / ThinkPHP | VulnCheck | Version data not supplied | |
topthink/frameworkBrowse Packagist / topthink/framework | GitHub Advisory | Before 6.0.14 · Fixed in 6.0.14 | affected |
Nuclei templates
1ProjectDiscoveryCRITICALThinkphp Lang - Local File InclusionCVSS 9.8
ThinkPHP Framework before 6.0.14 allows local file inclusion via the lang parameter when the language pack feature is enabled (lang_switch_on=true). An unauthenticated and remote attacker can exploit this to execute arbitrary operating system commands, as demonstrated by including pearcmd.php.
Impact
This vulnerability can lead to unauthorized access, data leakage, and remote code execution.
Remediation
Apply the latest security patches and updates provided by the Thinkphp framework.
Source: ProjectDiscovery