Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 5 min read

WP Rocket CVE-2026-125812: Patchstack Observes Attempts to Execute PHP Code Without Authentication

1. Basic Information Article Name: Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack Source: Patchstack Published Date: 2026-11-27 Original Source: Patchstack Related Sources: WP Rocket security advis

1. Basic Information

2. Executive Summary

Patchstack observed unauthenticated exploitation attempts targeting WP Rocket’s public AJAX handler. On unpatched sites with at least one of the affected optimization features enabled, successful exploitation allows external content to be written as a PHP file and executed.

3. Attack Flow

Both paths use the same public AJAX handler and can succeed if their respective features are enabled.

  • Path A: LazyLoad for CSS Background Images: This path can succeed when LazyLoad for CSS background images is enabled. Due to insufficient URL validation in the public AJAX handler, external content may be saved as a PHP file and executed.
  • Path B: Self-Host Google Fonts: This path can succeed when Self-host Google Fonts is enabled. Through the same public AJAX handler, external content may be saved as a PHP file and executed.

4. Attacker Location and Execution Point

  • Remote attackers reaching the public WordPress AJAX endpoint from the internet.

5. Victim and Administrator Perspective

Victim

  • Normal browsing may not show any anomalies.

Administrator

  • Abnormal AJAX requests, outbound traffic, and unfamiliar PHP files can be clues for investigation. Child process creation is not mandatory for PHP execution.

6. Success and Failure Conditions

Success Conditions

  • Using versions 3.15 to 3.24.1 as indicated by WP Rocket, with at least one of the target features enabled.
  • File writing requires that the WordPress host can fetch external content and has write permissions to the destination directory. Code execution additionally requires that the saved file can be processed as PHP.

Failure Conditions and Mitigations

  • Update to version 3.24.2 or later.
  • Disable both features until updated, and restrict outbound traffic, file writing, and PHP execution scope on the web server.

7. Impact of Successful Exploitation

  • Arbitrary PHP code execution on the WordPress server.
  • If attackers achieve code execution, they could deploy web shells, place additional files, or create accounts.

8. Observable Logs

  • Proxy / SWG / DNS: Abnormal POST requests to /wp-admin/admin-ajax.php and outbound fetch requests to domains like nip.io or trycloudflare.com. To identify action=rocket_beacon passed in the POST body, WAFs or similar tools must be configured to log form parameters.
  • Endpoint / EDR: Creation of PHP files by the web process. Child processes may be spawned by subsequent activities.
  • Identity / IdP: None relevant
  • SaaS / Cloud: Changes in WordPress file integrity, plugin version, or configuration.
  • Network: Outbound traffic from the WordPress host to bare IPs or temporary tunnels.

9. Attack Success Assessment

  • Attack Attempt Observed (Success Unconfirmed): Public evidence: Telemetry reported by Patchstack indicates exploitation attempts and blocking. Patchstack’s report provides no evidence confirming that PHP files were written or executed on individual sites. Scope: Sites covered by Patchstack’s telemetry.

10. Investigation Playbook

  • Trigger: Abnormal POST to rocket_beacon, new PHP files, child process creation by the web process.
  • Initial Verification: Check WP Rocket version, feature settings, initial request, and payload URL.
  • Endpoint: Preserve WordPress file diffs, web root, tmp, processes, and accounts.
  • Identity and Cloud: Check WordPress admin accounts, hosting accounts, and database credentials.
  • Follow-up: Track web shells, cron jobs, plugin modifications, and outbound traffic.
  • Containment: Isolate the site, update to 3.24.2, remove malicious files, and rotate credentials.
  • Categorization: Differentiate between attempts, file writing, PHP execution, persistence, and subsequent compromise.

11. Defense and Detection Ideas

  • Single Event: POST containing an external URL to rocket_beacon, new PHP files.
  • Timeline Correlation: Correlate abnormal AJAX requests, outbound fetches, and PHP file creation; confirm PHP execution through separate evidence.
  • Hunting: Search for nip.io, trycloudflare.com, bare IPs, and recent PHP diffs under the WordPress directory.
  • Log Gaps: WAF alone cannot confirm file creation and subsequent execution on the server.
  • Priority Mitigations: Update to 3.24.2, disable both features, monitor file integrity, and control outbound traffic.

12. Facts / Inference / Hypothesis

Facts

  • WP Rocket official advisory identifies sites running versions 3.15 to 3.24.1 with LazyLoad for CSS background images or Self-host Google Fonts enabled as affected by CVE-2026-125812. The Patchstack CNA record lists the affected version range as below 3.24.2.
  • According to Patchstack, the rocket_beacon action in the public admin-ajax.php lacks proper validation of the target URL, causing external content to be saved as a PHP file on qualifying sites. If PHP execution is permitted in the destination directory, the saved code may execute.
  • Patchstack observed the first attempt at 15:27:11 UTC on November 25, 2026, and blocked tens of thousands of automated exploitation requests on November 26 alone.
  • Patchstack also observed attempts targeting both paths within the same request.
  • Patchstack reported servers specified directly by IP address, nip.io, trycloudflare.com, and presumably compromised WordPress sites as distribution sources used by multiple attackers.
  • According to WP Rocket, the patched version 3.24.2 was released on November 19, 2026. The workaround prior to updating is disabling both features. The CNA record rates the severity as CVSS v3.1 9.8 (Critical).
  • Patchstack noted that identical requests sent from four residential IP addresses suggest the use of rotating proxies.

Inference

No additional inferences specific to this article.

Hypothesis

  • None

13. MITRE ATT&CK Mapping

ID Technique Confidence Basis
T1190 Exploit Public-Facing Application high Patchstack observed unauthenticated exploitation attempts targeting the public AJAX endpoint.
T1105 Ingress Tool Transfer medium Patchstack states that content may be retrieved from external servers upon successful exploitation. Public telemetry does not confirm successful retrieval.

14. Uncertainties and Additional Investigation

  • The number of attempts that led to PHP execution on unprotected sites outside Patchstack's observation scope, as well as the full functionality of subsequent payloads, remains unknown.
  • Discrepancies between the CNA record and WP Rocket official statements regarding versions prior to 3.15 have not been reconciled with implementation or test results.

15. Impact on SOCs and Organizations

If the server was exposed in a vulnerable configuration, in addition to applying updates, check for suspicious PHP files, suspicious account creation, and unexpected outbound traffic.

16. Summary by Target Audience

  • For SOCs: Correlate abnormal AJAX requests, outbound fetches, and newly created PHP files. Assess evidence of PHP file writes and PHP execution separately.
  • For Administrators: Update WP Rocket to 3.24.2 or later, disable both features until updated, and check sites that previously ran with a vulnerable configuration for signs of compromise.
  • For Users: No user action is required. Report suspicious site behavior to administrators.
πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.