Vulnerability · Published Dec 23, 2022 · Assigned by mitre
CVE-2022-47945
Critical 9.8
In plain English
A critical-severity path traversal in the topthink/framework package (Packagist). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 30.2% (higher than 98% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | topthink/framework | 6.0.14 | GHSA-p4qr-vq2g-22wp |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H