p PatchFirst

CVE-2012-20007

CVE-2012-20007 · ThinkPHP 2.x / 3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFO

CVSS 9.3 · Critical · EPSS 0.7%

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

ThinkPHP 2.0 through 2.2 and 3.0 Lite mode contains an eval injection vulnerability in the Dispatcher PATH_INFO parsing, which uses preg_replace with the /e modifier and a double-quoted replacement. Unauthenticated attackers can send crafted requests to index.php with a malicious 's' parameter containing PHP expressions to execute arbitrary code on the server. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-14.

Published
Updated

Affected products and versions

  • thinkphp

    Versions
    • ≥ 2.0, ≤ 2.2: Affected (custom)
    • 3.0: Affected (custom)

    No fix published

Original sources

Check your server →