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.

Project Subscriptions

Vendors Products
Thinkphp Subscribe
Thinkphp Subscribe
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-p4qr-vq2g-22wp ThinkPHP Framework vulnerable to remote code execution
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Sat, 12 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.87461}

epss

{'score': 0.88534}


Wed, 16 Apr 2025 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2025-04-15T13:52:17.194Z

Reserved: 2022-12-23T00:00:00.000Z

Link: CVE-2022-47945

cve-icon Vulnrichment

Updated: 2024-08-03T15:02:36.570Z

cve-icon NVD

Status : Modified

Published: 2022-12-23T21:15:09.203

Modified: 2025-04-15T14:15:39.940

Link: CVE-2022-47945

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses