Skip to content
OpenAdvisories
Critical · 9.8 Scanner template CVE-2022-47945 EUVD-2022-7698GHSA-p4qr-vq2g-22wp

ThinkPHP Framework vulnerable to remote code execution

Published Dec 23, 2022 · Updated Apr 15, 2025 · Assigned by mitre

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.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist topthink/framework < 6.0.14 6.0.14 GHSA-p4qr-vq2g-22wp

References