Vulnerabilities · 2022 · Thinkphp
CVE-2022-47945
Thinkphp vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Thinkphp. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Thinkphp runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099 · Patch
- github.com/top-think/framework/compare/v6.0.13...v6.0.14 · Patch
- tttang.com/archive/1865/ · Exploit
- nvd.nist.gov/vuln/detail/CVE-2022-47945
- tttang.com/archive/1865
- github.com/advisories/GHSA-p4qr-vq2g-22wp
- nvd.nist.gov/vuln/detail/CVE-2022-47945
- cve.org/CVERecord?id=CVE-2022-47945
More vulnerabilities in Thinkphp products
CVE-2025-63889CVE-2025-63888CVE-2025-50707CVE-2025-50706CVE-2024-48112CVE-2024-44902CVE-2024-34467CVE-2022-45982All 26
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.