# CVE-2022-47945: ThinkPHP Framework vulnerable to remote code execution

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 31.3%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-12-23T00:00:00.000Z
- Modified: 2026-06-17T05:14:30.090Z
- Also known as: GHSA-p4qr-vq2g-22wp
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- topthink/framework (Packagist): before 6.0.14
- thinkphp thinkphp: before 6.0.14

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://tttang.com/archive/1865/> (exploit, third-party-advisory)
- <https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099> (patch, third-party-advisory, web)
- <https://github.com/top-think/framework/compare/v6.0.13...v6.0.14> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-47945> (advisory)
- <https://github.com/top-think/framework> (package)
- <https://tttang.com/archive/1865> (web)

## Sources

- CVE List: [CVE-2022-47945](https://www.cve.org/CVERecord?id=CVE-2022-47945), CVE Terms of Use, modified 2025-04-15
- GitHub Advisory Database: [GHSA-p4qr-vq2g-22wp](https://github.com/advisories/GHSA-p4qr-vq2g-22wp), CC-BY-4.0, modified 2025-04-15
- NVD: [CVE-2022-47945](https://nvd.nist.gov/vuln/detail/CVE-2022-47945), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-47945 · Whole record: https://cve.day/CVE-2022-47945.json · Rebuilt by cve.day 2026-11-25T22:58:17.852Z
