CVE-2022-47945
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
topthink/framework (Packagist)before 6.0.14GitHub Advisory Database
thinkphp thinkphpbefore 6.0.14NVD

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-22

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

Sources

SourceRecordLicence
CVE ListCVE-2022-47945 changed 2025-04-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-p4qr-vq2g-22wp changed 2025-04-15CC-BY-4.0
NVDCVE-2022-47945 changed 2026-06-17Public domain