ADVISORIES

GitHub Advisory Database

GHSA-p4qr-vq2g-22wp

ThinkPHP Framework vulnerable to remote code execution

Critical CVE-2022-47945

Details

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

EcosystemPackageAffected versions
Packagisttopthink/framework
All versions before 6.0.14 (fixed in 6.0.14)

References