CVE-2022-47945
CRITICAL9.8EPSS 89.9%ThinkPHP Framework vulnerable to remote code execution
Published: 12/23/2022Modified: 4/15/2025
Also known as:GHSA-p4qr-vq2g-22wp
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 (1)
- Packagist/topthink/frameworkfrom 0, < 6.0.14
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |