{ "schema_version": "1.4.0", "id": "GHSA-p4qr-vq2g-22wp", "modified": "2025-04-15T15:51:35Z", "published": "2022-12-23T21:30:17Z", "aliases": [ "CVE-2022-47945" ], "summary": "ThinkPHP Framework vulnerable to remote code execution", "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`.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" } ], "affected": [ { "package": { "ecosystem": "Packagist", "name": "topthink/framework" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "6.0.14" } ] } ] } ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-47945" }, { "type": "WEB", "url": "https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099" }, { "type": "PACKAGE", "url": "https://github.com/top-think/framework" }, { "type": "WEB", "url": "https://github.com/top-think/framework/compare/v6.0.13...v6.0.14" }, { "type": "WEB", "url": "https://tttang.com/archive/1865" } ], "database_specific": { "cwe_ids": [ "CWE-22" ], "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2023-01-04T13:51:57Z", "nvd_published_at": "2022-12-23T21:15:00Z" } }