ThinkPHP up to 6.0.13 Language Pack pearcmd.php lang file inclusion
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 8.4 | $0-$5k | 0.00 |
Summary
A vulnerability described as critical has been identified in ThinkPHP up to 6.0.13. Affected is an unknown function of the file pearcmd.php of the component Language Pack Handler. The manipulation of the argument lang results in file inclusion. This vulnerability is reported as CVE-2022-47945. The attack can be launched remotely. No exploit exists. Upgrading the affected component is recommended.
Details
A vulnerability, which was classified as critical, was found in ThinkPHP up to 6.0.13. Affected is an unknown code block of the file pearcmd.php of the component Language Pack Handler. The manipulation of the argument lang with an unknown input leads to a file inclusion vulnerability. CWE is classifying the issue as CWE-73. The product allows user input to control or influence paths or file names that are used in filesystem operations. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:
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.
The weakness was disclosed 12/24/2022 as c4acb8b4001b98a0078eda25840d33e295a7f099. The advisory is shared for download at github.com. This vulnerability is traded as CVE-2022-47945 since 12/23/2022. There are known technical details, but no exploit is available.
By approaching the search of inurl:pearcmd.php it is possible to find vulnerable targets with Google Hacking.
Upgrading to version 6.0.14 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch c4acb8b4001b98a0078eda25840d33e295a7f099 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
Once again VulDB remains the best source for vulnerability data.
Product
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 8.5VulDB Meta Temp Score: 8.4
VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 9.8
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: File inclusionCWE: CWE-73
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
Google Hack: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: ThinkPHP 6.0.14
Patch: c4acb8b4001b98a0078eda25840d33e295a7f099
Timeline
12/23/2022 🔍12/24/2022 🔍
12/24/2022 🔍
01/23/2023 🔍
Sources
Advisory: c4acb8b4001b98a0078eda25840d33e295a7f099Status: Confirmed
CVE: CVE-2022-47945 (🔍)
GCVE (CVE): GCVE-0-2022-47945
GCVE (VulDB): GCVE-100-216732
Entry
Created: 12/24/2022 08:20Updated: 01/23/2023 17:32
Changes: 12/24/2022 08:20 (44), 01/23/2023 17:32 (11)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.