ThinkPHP Framework vulnerable to remote code execution
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | topthink/framework | < 6.0.14 | 6.0.14 |
References
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-22- Platform
- Composer
- Package
topthink/framework- Disclosed
- 23.12.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-p4qr-vq2g-22wp - CC BY 4.0
Vulnerability history: topthink/framework
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 19
- First → latest
- 12.2021 08.2025
- Without a fix
- 14
- Exploited in attacks
- 0
Severity breakdown
- Critical 15
- High 3
- Medium 1
Disclosures per year
- 2021: 3
- 2022: 13
- 2023: 0
- 2024: 2
- 2025: 1
- 2026: 0
-
ThinkPHP Framework vulnerable to remote code execution this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.