Skip to main content
ExploitedNot in CISA KEV yetFix available

CVE-2022-47945

Exploitation confirmed. First attested on 2024-04-11 by GCVE · kevintel, GCVE · shadowserver.

  • Published2022-12-23
  • Fixed in6.0.14
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-12-2321:15CVE publishedNVD
  2. 2024-04-1110:38Listed as exploited by GCVEGCVE
  3. 2024-04-1110:38Exploitation first reportedGCVE

Versions per branch

NVD · OSV
Thinkphp
BranchAffectedFixed in
6.0< 6.0.146.0.14

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Fix

  1. Update Thinkphp to 6.0.14

Advisories and patches

Detection

read 2026-11-04 22:56 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2022-12-23
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-p4qr-vq2g-22wp

Frequently asked questions

What is CVE-2022-47945?

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.

Is CVE-2022-47945 actively exploited?

A proof-of-concept exploit exists for CVE-2022-47945, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-47945?

CVE-2022-47945 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running topthink/framework? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record