CVE-2025-9501: Unauthenticated PHP Command Injection in W3 Total Cache
CVE-2025-9501 is a critical unauthenticated command injection vulnerability in the W3 Total Cache WordPress plugin affecting versions prior to 2.8.13. The flaw is in the plugin’s dynamic content parsing logic, specifically the _parse_dynamic_mfunc() function in the page cache processing path. Insufficient validation of attacker-controlled input allows specially crafted comment content to reach unsafe eval()-based PHP execution. When the vulnerable code path is active, a remote attacker can submit a malicious comment to a post and cause arbitrary PHP commands to be executed by the web application. The issue is associated with cached mfunc comment processing and can result in full compromise of the affected WordPress instance and underlying server context available to PHP.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation enables remote execution of arbitrary PHP code in the security context of the web server or PHP runtime. This can allow complete takeover of the affected WordPress site, theft or modification of application data, deployment of additional malware or webshells, abuse of the host for further intrusion activity, and potentially full system compromise depending on the privileges and environment of the PHP process.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by disabling or restricting unauthenticated comments, disabling the vulnerable page caching functionality or the plugin entirely where operationally feasible, and limiting public access to affected WordPress instances until remediation is complete. Additional defensive measures include monitoring for suspicious comment submissions and PHP execution anomalies, hardening the PHP/web server runtime, and using compensating controls such as WAF rules to block exploit attempts targeting dynamic mfunc comment processing. The effectiveness of mitigation depends on the specific site configuration.
Remediation
Patch, then assume compromise.
Upgrade W3 Total Cache to version 2.8.13 or later. After patching, review the WordPress installation for signs of compromise, including unauthorized administrative changes, malicious plugin or theme modifications, unexpected server-side code, suspicious comments, and anomalous activity in application, web server, and security logs. Verify the integrity of WordPress files and database content if the vulnerable plugin was exposed under exploitable conditions.
Exploits
1 exploit validated by Mallory's analysis.
Frequently asked questions
- Is CVE-2025-9501 exploited in the wild?
- Yes. As of Sep 25, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2025-9501?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2025-9501, the earliest disclosed Jan 14, 2026.
- Is there a patch for CVE-2025-9501?
- Upgrade W3 Total Cache to version 2.8.13 or later. After patching, review the WordPress installation for signs of compromise, including unauthorized administrative changes, malicious plugin or theme modifications, unexpected server-side code, suspicious comments, and anomalous activity in application, web server, and security logs.
- How severe is CVE-2025-9501?
- CVE-2025-9501 has a CVSS v3.1 score of 9.0 (Critical) and an EPSS score of 1.6% (75th percentile) as of Sep 25, 2026.
Recent activity
42 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.