Vulnerability · Published Dec 23, 2022 · Assigned by mitre

CVE-2022-47945

Critical 9.8

In plain English

A critical-severity path traversal in the topthink/framework package (Packagist). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 30.2% (higher than 98% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)30.2%top 1.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Nuclei

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagisttopthink/framework6.0.14GHSA-p4qr-vq2g-22wp

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References