{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-47945","id":"CVE-2022-47945","title":"ThinkPHP Framework vulnerable to remote code execution","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.","descriptionLong":"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.","published":"2022-12-23T00:00:00.000Z","updated":"2026-10-28T02:31:10.179953698Z","reserved":"2022-12-23T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"topthink/framework","purl":"pkg:composer/topthink/framework","ranges":["<6.0.14"],"fixed":["6.0.14"],"advisory":"GHSA-p4qr-vq2g-22wp"}],"cwes":["CWE-22"],"aliases":["GHSA-p4qr-vq2g-22wp"],"references":[{"url":"https://tttang.com/archive/1865/","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/top-think/framework/compare/v6.0.13...v6.0.14","tags":["x_transferred","Patch","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/47xxx/CVE-2022-47945.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-47945","tags":["advisory"]},{"url":"https://github.com/top-think/framework","tags":["package"]},{"url":"https://tttang.com/archive/1865","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.30237,"epssPercentile":0.98258,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-47945","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-47945","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-47945","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-p4qr-vq2g-22wp","ok":true,"note":"GHSA-p4qr-vq2g-22wp"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-47945","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 30% with CVSS 9.8"],"attention":null}