🛡️ CVE-2022-47945 — thinkphp

🔴 CVSS 9.8 — Critical ⚠️ Exploit Public CWE-22 NVD
9.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

ThinkPHP Framework vulnerable to remote code execution

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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2022-47945 is classified as CWE-22: Path Traversal. A file path built from user input is not confined to the intended directory, letting an attacker reach files elsewhere on the filesystem.

Affected software

CVE-2022-47945 is recorded against 2 packages.

  • thinkphp (fixed in 6.0.14)
  • topthink/framework (fixed in 6.0.14)

Timeline and source

Published on 23 December 2022 and last revised on 17 June 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com
github.com
tttang.com
github.com
github.com
tttang.com

Details

Severity CRITICAL
CVSS Score 9.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE CWE-22
Public Exploit ⚠️ Yes
Source NVD
Published 2022-12-23
Updated 2026-08-12
Modified 2026-06-17

Affected Packages

Software From version Fixed in
thinkphp 6.0.14
topthink/framework 6.0.14

Similar Threats

Exploit Protection

Are you running thinkphp?

CVE-2022-47945 carries CVSS 9.8 Critical rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2022-47945 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.