CVE-2022-47945 in the critical feed json
ThinkPHP Framework vulnerable to remote code execution
published 2022-12-23 3 y ago modified 2026-06-17 4 mo ago also GHSA-p4qr-vq2g-22wp , EUVD-2022-7698
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 30.2%
- EPSS 30.2% chance of exploitation in 30 days, percentile 98%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
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.
Patch / fix
- packagist topthink/framework 6.0.14
- thinkphp thinkphp 6.0.14
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
30.24% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Thinkphp Lang - Local File Inclusion nuclei detection template
- tttang.com https://tttang.com/archive/1865/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | topthink/framework | <6.0.14 |
6.0.14 |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099
web, patch, third-party-advisory
-
github.com
/top-think/framework/compare/v6.0.13...v6.0.14
web, patch, third-party-advisory
-
tttang.com
/archive/1865/
exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-47945
advisory
-
github.com
/top-think/framework
package
-
tttang.com
/archive/1865
web
Sources
- CVE List CVE-2022-47945
- GitHub Advisory GHSA-p4qr-vq2g-22wp
- NVD CVE-2022-47945
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.