← Vulnerability feed

Vulnerability record · CVE-2022-47945 · published 23 December 2022

CVE-2022-47945: Thinkphp path traversal vulnerability

Thinkphp · Thinkphp

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.

9.8 CVSS 3.1 Critical EPSS 28% · top 1.9% CWE-22 · Path traversal
9.8CVSS 3.1 base score
28%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-47945 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2019-9082ThinkPHP invokefunction parameter allows remote command executionThinkPHP before 3.2.4, and products built on it such as Open Source BMS v1.1.1, fails to properly restrict the invokefunction route, letting a crafte…KEVEPSS 97%analysed9.8CVE-2025-63888Thinkphp php remote file inclusion vulnerabilityThe read function in file thinkphp\library\think\template\driver\File.php in ThinkPHP 5.0.24 contains a remote code execution vulnerability.EPSS 0.57%9.8CVE-2025-50707Thinkphp code injection vulnerabilityAn issue in thinkphp3 v.3.2.5 allows a remote attacker to execute arbitrary code via the index.php componentEPSS 1.0%9.8CVE-2025-50706Thinkphp code injection vulnerabilityAn issue in thinkphp v.5.1 allows a remote attacker to execute arbitrary code via the routecheck functionEPSS 1.0%9.8CVE-2024-48112Thinkphp deserialization of untrusted data vulnerabilityA deserialization vulnerability in the component \controller\Index.php of Thinkphp v6.1.3 to v8.0.4 allows attackers to execute arbitrary code.EPSS 0.89%9.8CVE-2024-44902Thinkphp deserialization of untrusted data vulnerabilityA deserialization vulnerability in Thinkphp v6.1.3 to v8.0.4 allows attackers to execute arbitrary code.EPSS 4.2%9.8CVE-2022-45982Thinkphp deserialization of untrusted data vulnerabilitythinkphp 6.0.0~6.0.13 and 6.1.0~6.1.1 contains a deserialization vulnerability. This vulnerability allows attackers to execute arbitrary code via a c…EPSS 1.2%9.8CVE-2022-38352Thinkphp deserialization of untrusted data vulnerabilityThinkPHP v6.0.13 was discovered to contain a deserialization vulnerability via the component League\Flysystem\Cached\Storage\Psr6Cache. This vulnerab…EPSS 21%

Source: NIST National Vulnerability Database (record CVE-2022-47945), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.