CVE-2022-47945: Path Traversal

Published Dec 23, 2022
·
Updated

ThinkPHP Framework before 6.0.14 allows local file inclusion via the lang parameter when the language pack feature is enabled (langswitchon=true). An unauthenticated and remote attacker can exploit this to execute arbitrary operating system commands, as demonstrated by including pearcmd.php.

Other sources

ThinkPHP Framework before 6.0.14 allows local file inclusion via the lang parameter when the language pack feature is enabled (langswitchon=true). An unauthenticated and remote attacker can exploit this to execute arbitrary operating system commands, as demonstrated by including pearcmd.php.

Affected Software

2 affected componentsFixes available
ThinkPHP ThinkPHP<6.0.14
composer/topthink/framework<6.0.14
6.0.14

Event History

Dec 23, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Advisory Published
via GitHub·09:30 PM
Data Sourced
via GitHub·09:30 PM
DescriptionSeverityWeaknessAffected Software
Feb 12, 2025
News Published
via BleepingComputer·11:04 PM
News Published
via BleepingComputer·11:05 PM
Feb 16, 2025
Known Exploited
11:06 PM

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-47945?

CVE-2022-47945 is a vulnerability in the ThinkPHP Framework before version 6.0.14 that allows for local file inclusion and arbitrary command execution.

2

How severe is CVE-2022-47945?

CVE-2022-47945 has a severity rating of 9.8 (critical).

3

How does CVE-2022-47945 work?

CVE-2022-47945 can be exploited by an unauthenticated remote attacker by using the lang parameter with the language pack feature enabled, allowing them to execute arbitrary operating system commands.

4

Which software versions are affected by CVE-2022-47945?

ThinkPHP Framework versions before 6.0.14 are affected by CVE-2022-47945.

5

How can CVE-2022-47945 be fixed?

To fix CVE-2022-47945, it is recommended to update to ThinkPHP Framework version 6.0.14 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203