{"id":"CVE-2022-47945","details":"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.","aliases":["GHSA-p4qr-vq2g-22wp"],"modified":"2026-08-12T03:51:12.558295265Z","published":"2022-12-23T00:00:00Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/47xxx/CVE-2022-47945.json"},"references":[{"type":"WEB","url":"https://github.com/top-think/framework/compare/v6.0.13...v6.0.14"},{"type":"WEB","url":"https://tttang.com/archive/1865/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/47xxx/CVE-2022-47945.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-47945"},{"type":"FIX","url":"https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/top-think/framework","events":[{"introduced":"0"},{"fixed":"e621c239492d4f7e276e166b16aba3fb933d501e"},{"fixed":"c4acb8b4001b98a0078eda25840d33e295a7f099"}],"database_specific":{"cpe":"cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"6.0.14"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v6.0.13","v6.0.12","v6.0.11","v6.0.10","v6.0.9","v6.0.8","v6.0.7","v6.0.6","v6.0.5","v6.0.4","v6.0.3","v6.0.2","v6.0.1","v6.0.0","v6.0.0-rc5","v6.0.0-rc4","v6.0.0-rc3","v6.0.0-rc2","v5.2-rc1","v5.2-beta.3","v5.2-beta.2","v5.1.7","v5.1.6","v5.1.5","v5.1.4","v5.1.3","5.1.3","v5.1.2","v5.1.1","v5.1.0","v5.1-rc.2","5.0.11","v5.1-rc.1","v5.1-beta.1","v5.0.1","v5.0.0","5.0","5.0-rc4","5.0-rc3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-47945.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}