Security mailing lists by PureSourceCode

CVE-2022-47945

CRITICAL 9.8CVSS 3.1

ThinkPHP Framework vulnerable to remote code execution

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
23 Dec 2022
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-22
Also known as
GHSA-p4qr-vq2g-22wp
Sources
NVDJSONOSV GHSA-p4qr-vq2g-22wpJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD thinkphp thinkphp
cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*
< 6.0.14 6.0.14
OSV Packagist topthink/framework < 6.0.14 6.0.14

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 23 Dec 2022)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 23 Dec 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.