{"id":"CVE-2022-47945","aliases":["CVE-2022-47945","GHSA-p4qr-vq2g-22wp"],"related":[],"kind":"vulnerability","state":"published","title":"ThinkPHP Framework vulnerable to remote code execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"ThinkPHP Framework anterior a 6.0.14 permite la inclusión de archivos locales a través del parámetro lang cuando la función del paquete de idioma está habilitada (lang_switch_on=true). Un atacante remoto y no autenticado puede aprovechar esto para ejecutar comandos arbitrarios del sistema operativo, como lo demuestra la inclusión de pearcmd.php.","source":"nvd"}],"published":"2022-12-23T00:00:00.000Z","modified":"2026-06-17T05:14:30.090Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.0.14"}],"ecosystem":"Packagist","package":"topthink/framework","purl":"pkg:composer/topthink/framework","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.0.14"}],"vendor":"thinkphp","product":"thinkphp","cpe":"cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://tttang.com/archive/1865/","tags":["exploit","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/top-think/framework/compare/v6.0.13...v6.0.14","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-47945","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/top-think/framework","tags":["package"],"sources":["ghsa"]},{"url":"https://tttang.com/archive/1865","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-04-15T13:51:52.899Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-47945","url":"https://www.cve.org/CVERecord?id=CVE-2022-47945","licence":"CVE Terms of Use","modified":"2025-04-15T13:52:17.194Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p4qr-vq2g-22wp","url":"https://github.com/advisories/GHSA-p4qr-vq2g-22wp","licence":"CC-BY-4.0","modified":"2025-04-15T16:19:40.569Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-47945","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-47945","licence":"Public domain","modified":"2026-06-17T05:14:30.090Z"}],"updatedAt":"2026-11-25T22:58:17.852Z","epss":{"score":0.3132,"percentile":0.98309,"date":"2026-12-01T12:00:22.000Z"}}