Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2025-9501: Unauthenticated PHP Command Injection in W3 Total Cache

Published Nov 17, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.0Critical · v3.1
EPSS1.6%75th percentile
CISA KEVNoNot listed
In the wildReported4 exploitation records in Mallory
IdentifiersCVE-2025-9501CWE-94

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
CVE-2025_9501-POCThis repository is a small standalone Python proof-of-concept exploit for CVE-2025-9501, described in the code as a pre-authenticated remote code execution issue in the W3 Total Cache WordPress plugin. The repository contains only two files: a minimal README and the main exploit script, poc_cve_2025_9501.py. The Python script is the clear entry point and implements the full exploitation workflow. The exploit logic is structured around several stages. First, it verifies or assumes the target is a WordPress site using W3 Total Cache. It then discovers candidate posts that allow unauthenticated comments, primarily through the WordPress REST API endpoint /wp-json/wp/v2/posts and secondarily by scraping the homepage and individual article pages for post IDs and comment form markers. Once a suitable post is found, it submits a malicious comment to /wp-comments-post.php. The comment body contains a W3 Total Cache mfunc block wrapping PHP code, with the default payload echo passthru($_GET['cmd']);. This means arbitrary OS commands can be supplied later through the cmd query parameter. After comment injection, the script triggers execution by requesting the target post URL in the form /?p={post_id}&cmd={cmd}. If the vulnerable caching behavior processes the injected mfunc block, the supplied command executes on the server and its output is returned in the HTTP response. The script supports using a provided secret, attempting to brute-force common secrets, and optionally trying to extract the secret from wp-config.php exposure. Based on the visible code and CLI options, this is an actual exploit rather than a detector. It is operational but not heavily weaponized: it includes a working hardcoded PHP command-execution payload and some automation for discovery and secret handling, but it is still a simple standalone PoC rather than a framework-integrated exploit.InnerFireZ · Disclosed Jan 14, 2026 · python · markdown · web · networkOperational
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware6Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity32Community discussion across Reddit, Mastodon, and other social sources.