CVE-2022-47945: ThinkPHP Framework before 6.0.14 allows local file inclusion via the lang parameter when the language pack fea
CVE-2022-47945 is a critical-severity flaw (CVSS 9.8) affecting thinkphp. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 2%: very likely to be exploited
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 30.2% (top 2%) |
| CISA exploited list | No |
| Weakness | CWE-22 |
| Published | 2022-12-23 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Write-up: github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099
- Write-up: github.com/top-think/framework/compare/v6.0.13...v6.0.14
- Nuclei scan template: Thinkphp Lang - Local File Inclusion
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-47945?
thinkphp: upgrade to 6.0.14. Exact commands for each OS are on this page.
Is CVE-2022-47945 being exploited?
CVE-2022-47945 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-47945 affect?
CVE-2022-47945 affects thinkphp. Severity is critical (CVSS 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 syst
How urgent is CVE-2022-47945?
Priority 72/100. Critical severity; EPSS top 2%: very likely to be exploited; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2025-63888 CRITICAL 9.8 DOWNGRADE The read function in file thinkphp\library\think\template\driver\File.php in ThinkPHP 5.0.24 contains a remote
- CVE-2025-63889 HIGH 7.5 DOWNGRADE The fetch function in file thinkphp\library\think\Template.php in ThinkPHP 5.0.24 allows attackers to read arb
- CVE-2024-44902 CRITICAL 9.8 UPGRADE A deserialization vulnerability in Thinkphp v6.1.3 to v8.0.4 allows attackers to execute arbitrary code.
- CVE-2025-50707 CRITICAL 9.8 DOWNGRADE An issue in thinkphp3 v.3.2.5 allows a remote attacker to execute arbitrary code via the index.php component
- CVE-2025-50706 CRITICAL 9.8 DOWNGRADE An issue in thinkphp v.5.1 allows a remote attacker to execute arbitrary code via the routecheck function