{"id":"CVE-2022-47945","published":"2022-12-23T00:00:00Z","modified":"2025-04-15T13:52:17Z","title":"ThinkPHP Framework before 6.0.14 allows local file inclusion via the lang parameter when the language pack feature is…","vendor":null,"product":null,"tier":"core","eol":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-15T13:51:52.899991Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"ThinkPHP Framework versions before 6.0.14 contain a local file inclusion flaw in the handling of the lang parameter, which is exposed when the language pack feature is enabled (lang_switch_on=true). A remote attacker with no authentication and no user interaction can exploit this to execute arbitrary operating system commands, as demonstrated by including pearcmd.php.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:11:58Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.09457,"percentile":0.9616,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-04-11","exploitedFirstSeen":"2024-04-11","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2022-47945","date":"2024-04-11"},{"url":"https://www.f5.com/labs/articles/threat-intelligence/sensor-intel-series-top-cves-june-2024","date":"2024-07-25"},{"url":"https://www.f5.com/labs/articles/threat-intelligence/sensor-intel-series-top-cves-august-2024","date":"2024-09-19"},{"url":"https://www.f5.com/labs/articles/threat-intelligence/botpoke-scanner-switches-ip","date":"2024-11-25"},{"url":"https://www.f5.com/labs/articles/threat-intelligence/continued-scanning-for-cve-2023-1389","date":"2025-01-21"},{"url":"https://www.greynoise.io/blog/new-exploitation-surge-attackers-target-thinkphp-and-owncloud-flaws-at-scale","date":"2025-02-11"},{"url":"https://www.f5.com/labs/articles/threat-intelligence/campaign-targets-amazon-ec2-instance-metadata-via-ssrf","date":"2025-04-08"},{"url":"https://www.greynoise.io/blog/coordinated-cloud-based-scanning-operation-targets-75-known-exposure-points","date":"2025-05-27"},{"url":"https://www.f5.com/labs/articles/threat-intelligence/the-prevalence-of-web-based-rce-vulnerabilities","date":"2025-08-26"},{"url":"https://www.f5.com/labs/articles/threat-intelligence/more-mozilla-user-agents-please-a-deep-dive-into-an-inadvertent-disclosure-scanner","date":"2025-09-15"}],"evidenceTotal":15,"provenance":"source"},"exploited":true,"otx":{"pulseCount":9,"pulses":[{"name":"9 Year-Old PHP Vulnerability Keeps Swinging As One of the Most Targeted Vulnerabilities","url":"https://otx.alienvault.com/pulse/6a0e90036f0c2e15ca16c53f","created":"2026-05-21"},{"name":"9 Year-Old PHP Vulnerability Keeps Swinging As One of the Most Targeted Vulnerabilities","url":"https://otx.alienvault.com/pulse/6a0e8fbc92e4b25c8843a6c3","created":"2026-05-21"},{"name":"9 Year-Old PHP Vulnerability Keeps Swinging As One of the Most Targeted Vulnerabilities","url":"https://otx.alienvault.com/pulse/6a0ca36a3571d3fbd4cd92bc","created":"2026-05-19"},{"name":"Analyzing React2Shell Threat Actors","url":"https://otx.alienvault.com/pulse/696f07bb3a4139a8045b0375","created":"2026-01-20"},{"name":"Analyzing React2Shell Threat Actors","url":"https://otx.alienvault.com/pulse/696b8bd46b346ef957af57ad","created":"2026-01-17"},{"name":"Coordinated Cryptojacking Blitz Using PHP RCE Chains in ThinkPHP and PHPUnit for Mass Mining","url":"https://otx.alienvault.com/pulse/690d07e4ee1ff3ed6e586f3e","created":"2025-11-06"},{"name":"The Cost of a Call: From Voice Phishing to Data Extortion | Google Cloud Blog","url":"https://otx.alienvault.com/pulse/6840d9c595f595ae89288dab","created":"2025-06-04"},{"name":"Coordinated Cloud-Based Scanning Operation Targets 75 Known Exposure Points in One Day","url":"https://otx.alienvault.com/pulse/68404f73e208ff30c97ed2a4","created":"2025-06-04"},{"name":"Cloud-Based Scanning Campaign Targeting 75+ Exposure Points","url":"https://otx.alienvault.com/pulse/6837cb935326caff09e2725e","created":"2025-05-29"}],"provenance":"machine"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://tttang.com/archive/1865/","tags":[]},{"url":"https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099","tags":[]},{"url":"https://github.com/top-think/framework/compare/v6.0.13...v6.0.14","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Packagist","package":"topthink/framework","vulnerableRanges":["<6.0.14"],"patched":["6.0.14"],"from":["GHSA-p4qr-vq2g-22wp"],"provenance":"source"}],"advisories":[{"id":"GHSA-p4qr-vq2g-22wp","url":"https://github.com/advisories/GHSA-p4qr-vq2g-22wp","severity":"CRITICAL","ecosystem":"Packagist","package":"topthink/framework","vulnerableRanges":["<6.0.14"],"patched":["6.0.14"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2022-7698","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-7698","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"nuclei":[{"id":"CVE-2022-47945","name":"Thinkphp Lang - Local File Inclusion","severity":"critical","path":"http/cves/2022/CVE-2022-47945.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-47945.yaml"}],"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2022-12-23","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2022-47945","provenance":"source"},{"date":"2024-04-11","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2022-47945","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":68.4,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 958 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.23,"detail":"percentile 0.9616"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 nuclei template"},{"name":"Mentioned in OTX pulses","points":2.27,"detail":"9 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2018-16385","published":"2018-09-03","fixed":"5.1.23","kev":false},{"cve":"CVE-2021-36564","published":"2021-12-06","fixed":"6.0.9","kev":false},{"cve":"CVE-2021-23592","published":"2022-05-06","fixed":"6.0.12","kev":false,"link":{"from":"CVE-2021-23592","to":"CVE-2022-47945","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:topthink/framework","fromFixed":"6.0.12","toFixed":"6.0.14","daysApart":231}]}},{"cve":"CVE-2022-47945","published":"2022-12-23","fixed":"6.0.14","kev":false},{"cve":"CVE-2024-34467","published":"2024-05-04","fixed":"8.0.4","kev":false,"link":{"from":"CVE-2022-47945","to":"CVE-2024-34467","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:topthink/framework","fromFixed":"6.0.14","toFixed":"6.0.17","daysApart":498}]}}],"package":"Packagist:topthink/framework"}}