Advisory

GHSA-p4qr-vq2g-22wp

Also known as: 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

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-12-23 21:30 UTC
Modified
2025-04-15 16:19 UTC

Affected packages and fixes

topthink/framework

Packagist · All systems

Affected

  • introduced 0, fixed 6.0.14 (ecosystem)

Fixed versions

6.0.14

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences