CVE-2022-47945
CRITICAL 9.8CVSS 3.1ThinkPHP Framework vulnerable to remote code execution
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.
- Published
- 23 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-p4qr-vq2g-22wp
- Sources
- NVDJSONOSV GHSA-p4qr-vq2g-22wpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | thinkphp | thinkphpcpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:* |
< 6.0.14 | 6.0.14 |
| OSV | Packagist | topthink/framework | < 6.0.14 | 6.0.14 |
References
- https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099 · Patch, Third Party Advisory, WEB
- https://github.com/top-think/framework/compare/v6.0.13...v6.0.14 · Patch, Third Party Advisory, WEB
- https://tttang.com/archive/1865/ · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-47945 · ADVISORY
- https://github.com/top-think/framework · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 23 Dec 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 23 Dec 2022)