New CVE Detected

CVE-2012-20007 – Unauthenticated RCE (eval injection) – ThinkPHP 2.0–2.2 and 3.0 Lite

Get a free Attack Surface scan to see if you’re exposed.

Be the first to know when new zero-days emerge:

Summary

CVE-2012-20007 is an eval injection vulnerability in ThinkPHP versions 2.0 through 2.2 and 3.0 Lite mode. An unauthenticated remote attacker can execute arbitrary PHP code on the server through a crafted request. The CVE record rates it CRITICAL (CVSS v4.0 9.3; CVSS v3.1 9.8).

Technical details

  • Root cause: The Dispatcher’s PATH_INFO parsing uses preg_replace with the /e modifier and double-quoted replacement strings, so attacker-controlled input is evaluated as PHP code.
  • Trigger conditions: A request to index.php with a crafted s parameter. No authentication or user interaction is required.
  • Attack vector: Network, low complexity.
  • Impact: Arbitrary PHP code execution in the context of the web application, with high impact to confidentiality, integrity and availability.
  • Exploitation: The CVE record cites exploitation observed by the Shadowserver Foundation on October 14, 2023. The issue was originally disclosed publicly on April 25, 2012, and public exploit and detection material exists (Vulhub, Nuclei template).

Affected software

  • ThinkPHP 2.0 through 2.2
  • ThinkPHP 3.0 in Lite mode

Severity

  • CVSS v4.0: 9.3 (Critical) – CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
  • CVSS v3.1: 9.8 (Critical) – CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Mitigation and recommended actions

  • Immediate: The reviewed CVE record does not name a fixed version. Migrate affected applications to a ThinkPHP release outside the affected ranges (2.0–2.2 and 3.0 Lite), and verify the vendor’s current guidance.
  • If migration is not immediately possible: restrict network access to the application, and use a WAF or reverse-proxy rule to block requests whose s parameter contains PHP code constructs.
  • Review web server logs for requests to index.php with unusual s parameters, and investigate any such hosts for compromise.

References

Get a free Attack Surface scan to see if you’re exposed.

Get a free Attack Surface scan to see if you’re exposed.

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge