Skip to content
On CISA KEVCritical

CVE-2022-47945Thinkphp Path Traversal

ThinkPHP Framework vulnerable to remote code execution

Published Dec 23, 2022 · Updated Oct 22, 2026 · Also known as GHSA-p4qr-vq2g-22wp

Key Facts

Patch immediately
  • CVE-2022-47945 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Thinkphp, topthink/framework (composer).
  • It is exploited in the wild, listed in CIRCL KEV, Industry KEV feed since Apr 11, 2024. A public exploit is reported by tracking sources, but no code link is listed yet.
  • EPSS estimates a 29% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Thinkphp 6.0.14, topthink/framework 6.0.14.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

Scores

CVSS v3.1

9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

29%

Higher than 98.1% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

56/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Apr 11, 2024

475 days after publication

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

11

Reports of active use

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.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
CIRCL KEVApr 11, 2024n/aNot reported
Industry KEV feedApr 11, 2024n/aNot reported

Affected Products

2 affected entries in total
ProductAffected versionsFixed in
ThinkphpThinkphpSee advisory6.0.14
topthink/frameworkcomposerSee advisory6.0.14

Patched Releases

Thinkphp

6.0.14

topthink/framework

6.0.14

Timeline

  1. Publicly disclosed

    Dec 23, 2022

  2. Added to CIRCL KEV

    Apr 11, 2024

  3. Added to Industry KEV feed

    Apr 11, 2024

  4. Last updated

    Oct 22, 2026

Weakness Type

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

References

13 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2022-47945 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Oct 23, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.