Vulnerability

CVE-2012-20007

criticalCVSS 4.0 9.3Published 18 Nov 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • web.archive.org /web/20140201221754/http://www.jb51.net:80/softjc/43550.html
  • github.com /projectdiscovery/nuclei-templates/blob/main/http/vulnerabi…
  • github.com /vulhub/vulhub/tree/master/thinkphp/2-rce
  • www.vulncheck.com /advisories/thinkphp-2-x-3.0-lite-unauthenticated-rce-via-d…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning