Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
CRITICAL severity

CVE-2022-47945 — framework

CRITICALFix: top-think/framework@c4acb8b

CVE-2022-47945 is a critical-severity (CVSS 9.8) Path Traversal vulnerability in topthink/framework. 1 public exploit reference exists, so weaponization risk is real. A fix is available for topthink/framework — see the affected versions and patch details below.

ThinkPHP Framework vulnerable to remote code execution

Also known asGHSA-p4qr-vq2g-22wp
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
1 known
Exploitation data as of Oct 23, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • A successful exploit gives an attacker total control of the affected component, not partial access.

Exploitation and automatability from CISA’s SSVC triage for CVE-2022-47945.

EPSS Exploitation Probability

via FIRST.org ↗
30.2%probability of exploitation in next 30 days
Moderate Risk+1.98%
Lower risk than most CVEs98th percentile — riskier than 98% of all scored CVEsHighest risk
0.00%33.3%66.7%100.0%90.3%30.2%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2022-47945 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 395,249 CVEs with a current EPSS score, this one falls in the 10–50% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected
🐘topthink/framework

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

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

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagisttopthink/frameworkall versions6.0.14composer require topthink/framework:^6.0.14

Affected Products

1 product · 1 configurations
Application
thinkphpthinkphp
< 6.0.14
range
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for topthink/framework, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update topthink/framework to 6.0.14 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-47945 is resolved across your whole dependency graph.

  3. Workarounds

    Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.

How to detect CVE-2022-47945

A community-maintained Nuclei template exists for this CVE. You can scan for it directly:

nuclei -id cve-2022-47945 -u https://target
Template
Thinkphp Lang - Local File Inclusion
Severity
critical
Impact
This vulnerability can lead to unauthorized access, data leakage, and remote code execution.
Remediation
Apply the latest security patches and updates provided by the Thinkphp framework.

Template by ProjectDiscovery nuclei-templates (kagamigawa), MIT licensed. View the full template. Scan only systems you are authorised to test.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2022-47945 in your dependencies?

Find it across Packagist, including transitive dependencies.

CVE-2022-47945: framework — Fixed in 6.0.14