GitHub Advisoryadvisory · Packagist

GHSA-p4qr-vq2g-22wp ThinkPHP Framework vulnerable to remote code execution

CRITICAL Published 2022-12-23 Modified 2025-04-15 Official page ↗
Aliases
CVE-2022-47945
Ecosystem
Packagist
Packages
topthink/framework
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-22
Reviewed
2023-01-04

Affected packages

• Packagist topthink/framework: < 6.0.14 → fixed in 6.0.14

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`.

Related

Alias · CVE (1)

  • CVE-2022-47945 ThinkPHP Framework before 6.0.14 allows local file inclusion via the lang parameter when the language pack feature is enabled… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References