NetSight
critical9.8

CVE-2022-47945

ThinkPHP Framework vulnerable to remote code execution

Impact

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

EcosystemPackageAffectedFixed in
composertopthink/framework< 6.0.146.0.14

Affected products

VendorProductAffected versions
ThinkphpThinkphp
before 6.0.14

Weakness classification

References