CVE-2022-47945Thinkphp Path Traversal
ThinkPHP Framework vulnerable to remote code execution
Published Dec 23, 2022 · Updated Oct 22, 2026 · Also known as GHSA-p4qr-vq2g-22wp
Key Facts
Patch immediately- CVE-2022-47945 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Thinkphp, topthink/framework (composer).
- It is exploited in the wild, listed in CIRCL KEV, Industry KEV feed since Apr 11, 2024. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 29% probability of exploitation in the next 30 days.
- Fixed versions are available, including Thinkphp 6.0.14, topthink/framework 6.0.14.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
29%
Higher than 98.1% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
56/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Apr 11, 2024
475 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
11
Reports of active use
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2022-47945
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-47945
- advisoryGHSA advisory
- advisoryhttps://tttang.com/archive/1865
- patchhttps://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099
- patchhttps://github.com/top-think/framework/compare/v6.0.13...v6.0.14
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| CIRCL KEV | Apr 11, 2024 | n/a | Not reported |
| Industry KEV feed | Apr 11, 2024 | n/a | Not reported |
Affected Products
2 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| ThinkphpThinkphp | See advisory | 6.0.14 |
| topthink/frameworkcomposer | See advisory | 6.0.14 |
Patched Releases
Thinkphp
6.0.14
topthink/framework
6.0.14
Timeline
Publicly disclosed
Dec 23, 2022
Added to CIRCL KEV
Apr 11, 2024
Added to Industry KEV feed
Apr 11, 2024
Last updated
Oct 22, 2026
Weakness Type
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2022-47945
- advisoryGHSA advisory
- advisorytttang.com · 1865
- patchgithub.com · c4acb8b
FAQ
Common Questions.
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).
Affected: Thinkphp; topthink/framework (composer). The full list is in the CVE brief.
It is exploited in the wild, listed in CIRCL KEV, Industry KEV feed since Apr 11, 2024.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including Thinkphp 6.0.14, topthink/framework 6.0.14.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2022-47945 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo