9.8critical
ThinkPHP Framework vulnerable to remote code execution
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 31.3% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- 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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| topthink/framework (Packagist) | before 6.0.14 | GitHub Advisory Database |
| thinkphp thinkphp | before 6.0.14 | NVD |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
ThinkPHP Framework anterior a 6.0.14 permite la inclusión de archivos locales a través del parámetro lang cuando la función del paquete de idioma está habilitada (lang_switch_on=true). Un atacante remoto y no autenticado puede aprovechar esto para ejecutar comandos arbitrarios del sistema operativo, como lo demuestra la inclusión de pearcmd.php.
References
| https://tttang.com/archive/1865/ | exploit, third-party-advisory | |
| https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099 | patch, third-party-advisory, web | |
| https://github.com/top-think/framework/compare/v6.0.13...v6.0.14 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-47945 | advisory | |
| https://github.com/top-think/framework | package | |
| https://tttang.com/archive/1865 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-47945 changed 2025-04-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p4qr-vq2g-22wp changed 2025-04-15 | CC-BY-4.0 |
| NVD | CVE-2022-47945 changed 2026-06-17 | Public domain |