CVE-2022-47945

CRITICAL
Published Dec 23, 20223y ago · Modified Jun 17, 20262w ago
9.8 CVSS 3.1
Critical
Find Similar
Published Dec 23, 2022 3y ago
Last Modified Jun 17, 2026 2w ago

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 Details

Base Score
9.8
Exploitability
3.9
Impact
5.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 1

CWE-22 Path Traversal Resource Mgmt

Affected Products 1

VendorProductVersionRange
thinkphpthinkphp* <6.0.14

References 3

  • github.com https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099
    PatchThird Party Advisory
  • github.com https://github.com/top-think/framework/compare/v6.0.13...v6.0.14
    PatchThird Party Advisory
  • tttang.com https://tttang.com/archive/1865/
    ExploitThird Party Advisory

Remediation

  • github.com https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099
    PatchThird Party Advisory
  • github.com https://github.com/top-think/framework/compare/v6.0.13...v6.0.14
    PatchThird Party Advisory