Direct answer: CVE-2026-125812 is a flaw in WP Rocket, a WordPress cache plugin, with a CVSS 3.1 score of 9.8. An attacker with no account can make WP Rocket write files outside the cache folder. Patchstack classes the impact as remote code execution (RCE). Today, check the WP Rocket version on each site, then update to 3.24.3.
On 27 November 2026, there is no report of real attacks, and this CVE is not in the CISA KEV catalog. Patchstack expects attackers to use this flaw in mass attacks. WP Rocket turns off unattended auto-updates, so a site stays vulnerable until an admin updates it.
Main condition: all versions before 3.24.2 are vulnerable. Version 3.24.2 closes this flaw, and 3.24.3 is the latest version. Limit: this article contains no attack URL, path example, payload, or attack steps.
We read the Patchstack advisory, the CVE-2026-125812 record, NVD, CISA KEV, the official WP Rocket changelog, the fix commit 0b37477, the ZeroPath analysis, the WP Rocket update guide, the WP Rocket auto-update document, the expired license document, and the WP Rocket guide for hacked sites on 27 November 2026. We ran the scripts in steps 1, 2, 4, and 5 in a podman container with the official WordPress image and dummy data.
Important limit: our test used WP Rocket code from the vendor's public GitHub repo, not a package from a customer account. We did not test the vendor update server, license activation, or the settings export in the dashboard. We mark each step that we did not run.
The problem: a cache plugin writes files from a URL
WP Rocket is a premium WordPress cache plugin from WP Media. The vendor says that more than 5.6 million sites use WP Rocket. This number is a vendor claim, not the number of vulnerable sites.
WP Rocket keeps copies of pages, CSS, and fonts in the wp-content/cache/ folder. Some features fetch files from a URL and save them on the server. These features make a site faster, but the cache file path comes from a URL.
The ZeroPath analysis says that before 3.24.2, the cache file path came from a URL without a strict limit. So a file can land outside the cache folder. A file in the wrong place, with the wrong name, can run on the web server.

The researcher Vorelito reported the flaw through the Patchstack VDP on 4 November 2026. WP Media released the fix in 3.24.2 on 19 November. Patchstack published the advisory on 23 November, and the CVE record came out on 25 November.
The fix existed 4 days before the public advisory. A site that has not updated since 19 November is now exposed, because the flaw details are public. WP Rocket 3.24.3 came out on 26 November with a new AI Assistant feature.
How it works: a cache file path without a limit
This section uses the official summary and public analysis. Its purpose is to help you choose the correct steps, not to explain an attack.
Summary from the advisory
The Patchstack advisory says that WP Rocket below 3.24.2 has a remote code execution flaw that needs no login. The CVE record gives the weakness type CWE-22, path traversal. Patchstack gives it high priority.
CVSS 3.1 vector: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. This means: over the network, low complexity, no account, no victim click, with high impact on confidentiality, integrity, and availability. The score comes from the CNA Patchstack. NVD has not given its own score yet.
What 3.24.2 changes
The official WP Rocket changelog has 1 line for 3.24.2: better validation of cached CSS, font, and preconnect files. The fix commit 0b37477 and the ZeroPath analysis show 3 changes:
- The CSS cache file path stays inside the cache folder of the site. Script extensions and names that start with a dot, such as
.htaccess, are refused. - The local font feature saves only files with a valid font extension and font content.
- Preconnect data accepts only a valid http or https address.
The changed code is in 3 features: LazyLoad for CSS background images, local Google Fonts, and preconnect. We do not write other details, such as a URL format or a sample request. Those details do not help you close the flaw.

Exploitation status on 27 November 2026
No source records a real attack yet. But this flaw needs no account, and CISA rates the attack as automatable. Treat each site with WP Rocket below 3.24.2 as a target.
| Source | Status |
|---|---|
| Patchstack advisory, 23 November | No login. Expected to be exploited, because flaws of this type are used in mass attacks |
| CVE record, 25 November | CVSS 3.1 9.8 from the CNA Patchstack. CWE-22 |
| CISA SSVC rating, 25 November | Exploitation none, Automatable yes, Technical Impact total |
| CISA KEV | Not in the catalog as of 27 November 2026 |
| ZeroPath analysis, 25 November | No proof of real attacks, attacker names, public exploits, or IOCs yet |
Attackers often use a hacked WordPress site for the next attack. the case of 1,000 WordPress sites that GootLoader used shows an example. The same update pattern also appears in the JetFormBuilder flaw CVE-2026-119481 and the LatePoint booking plugin flaw CVE-2026-118066.
Who is most at risk
All sites with WP Rocket below 3.24.2 need action. The order in this table helps you choose which sites to do first.
| Site condition | Risk | Reason |
|---|---|---|
| WP Rocket active, version below 3.24.2 | High | An attacker with no account can try over the internet. Patchstack expects mass attacks |
| An agency or host with many old WP Rocket sites | High | Rama Digital analysis: if many sites share 1 web user, 1 missed site can give access to the other sites |
| WP Rocket inactive, old version files still exist | Check | An inactive plugin does not run its code. An admin can activate it again with no update |
| Version 3.24.2 or later | Lower | The flaw is closed per Patchstack. The site can be entered before the update |

The ZeroPath analysis says that public sources do not confirm which feature settings an attacker needs to reach the vulnerable code. So a disabled feature is not proof of safety. The version limit stays the guide.
Rama Digital analysis: agencies and hosting operators have the most risk, because 1 agency license often covers dozens of client sites. Old client sites that nobody opens often miss updates.
Vulnerable and safe versions
Compare the WP Rocket version on each site with this table. Sources: the Patchstack advisory and the official WP Rocket changelog.
| Version | Status | Action |
|---|---|---|
| Below 3.24.2 | Vulnerable | Update to 3.24.3 today |
| 3.24.2 (19 November 2026) | Safe for this CVE | Update to 3.24.3 in the next change window |
| 3.24.3 (26 November 2026) | Recommended | Still look for signs in step 5 |
| Version cannot be read | Check | Open Plugins > Installed Plugins, or read wp-rocket.php |

Important notes:
- The WP Rocket auto-update document says that WP Rocket turns off unattended auto-updates, because a cache change can change how a site looks.
- The expired license document says that an expired license stops update access. Renew the license first, or change to another cache plugin.
- WP Rocket is a premium plugin. A copy from an unofficial source gets no updates and can contain malicious code. Replace it with the official ZIP from the WP Rocket account.
- The version is in the
Version:line in the header ofwp-rocket.php. The Plugins page also reads this line.
Before you start
- A list of all WordPress sites that use WP Rocket, including staging and old client sites.
- WordPress admin access, and SSH access to the server when you have it.
- WP-CLI on the server for steps 2, 3, and 4. Steps 1 and 5 need only bash and file read access.
- An active WP Rocket license, or access to the WP Rocket account for the official ZIP.
- A backup location outside the server.
Step 1: Check the WP Rocket version on all sites
Manual method: open Plugins > Installed Plugins on each site. The WP Rocket row shows your version. For many sites on 1 server, use this script.
Save this script as check-version-wprocket.sh. The script reads the Version: line in wp-rocket.php in each WordPress folder, then compares it with 3.24.2 and 3.24.3. The script also accepts version numbers, for example from the Plugins page. The script only reads files.
#!/usr/bin/env bash
# Check the WP Rocket plugin version against CVE-2026-125812 (unauthenticated path traversal, CVSS 3.1 9.8, CWE-22).
# Data: CVE record from the Patchstack CNA, the Patchstack advisory, and the official wp-rocket.me changelog.
# All versions before 3.24.2 are vulnerable. 3.24.2 closes the flaw. Latest version at time of writing: 3.24.3.
# Use on one site: sudo bash check-version-wprocket.sh /var/www/html
# Use on many sites: sudo bash check-version-wprocket.sh /var/www /home
# Use for versions you copy: bash check-version-wprocket.sh 3.23.5 3.24.1 3.24.2 3.24.3
# The script only reads files. The script changes nothing.
SAFE_CVE=3.24.2
RECOMMENDED=3.24.3
# older_than A B: true when version A is below version B.
older_than() { [ "$1" != "$2" ] && [ "$(printf '%s\n%s\n' "$1" "$2" | sort -V | head -n1)" = "$1" ]; }
VULN_N=0
check() {
local v="$1"
if ! [[ $v =~ ^[0-9]+\.[0-9]+(\.[0-9]+){0,2}$ ]]; then
printf '%-9s UNKNOWN, compare by hand with the Plugins page\n' "$v"
return
fi
if older_than "$v" "$SAFE_CVE"; then
VULN_N=$((VULN_N + 1))
printf '%-9s VULNERABLE to CVE-2026-125812 (9.8) -> update to %s today\n' "$v" "$RECOMMENDED"
elif older_than "$v" "$RECOMMENDED"; then
printf '%-9s SAFE from CVE-2026-125812 -> still update to %s\n' "$v" "$RECOMMENDED"
else
printf '%-9s SAFE, version %s or later\n' "$v" "$RECOMMENDED"
fi
}
# file_version FILE: print the version from the plugin header. Strip CR first, so CRLF does not break the result.
file_version() { tr -d '\r' < "$1" | sed -nE 's/^[[:space:]]*\*?[[:space:]]*Version:[[:space:]]*([0-9][0-9.]*)[[:space:]]*$/\1/p' | head -n1; }
# is_wprocket FILE: true when the file header names the WP Rocket plugin.
is_wprocket() { head -c 4096 "$1" 2>/dev/null | tr -d '\r' | grep -qE '^[[:space:]]*\*?[[:space:]]*Plugin Name:[[:space:]]*WP Rocket[[:space:]]*$'; }
DIRS=()
VERSIONS=()
for x in "$@"; do
if [ -d "$x" ]; then DIRS+=("$x")
elif [[ $x == */* ]]; then echo "Folder not found: $x"
else VERSIONS+=("$x"); fi
done
if (( ${#VERSIONS[@]} > 0 )); then
for v in "${VERSIONS[@]}"; do check "$v"; done
(( ${#DIRS[@]} == 0 )) && exit 0
fi
# With no argument at all, check the default folder. A mistyped folder must not fall back to the default.
if (( $# == 0 )); then DIRS=(/var/www/html); fi
SITES=0
for d in "${DIRS[@]}"; do
FILES=()
DIRECT="$d/wp-content/plugins/wp-rocket/wp-rocket.php"
if [ -f "$DIRECT" ]; then
FILES=("$DIRECT")
else
# Search below a parent folder. Folders with spaces are safe, because find uses NUL separators.
while IFS= read -r -d '' f; do FILES+=("$f"); done < <(find "$d" -maxdepth 7 -type f -name wp-rocket.php -path '*/wp-content/plugins/wp-rocket/wp-rocket.php' -print0 2>/dev/null | sort -z)
fi
FOUND=0
for f in "${FILES[@]}"; do
[ -r "$f" ] && is_wprocket "$f" || continue
FOUND=1; SITES=$((SITES + 1))
echo "Site: ${f%/wp-content/plugins/wp-rocket/wp-rocket.php}"
v=$(file_version "$f")
check "${v:-unreadable}"
done
if (( ! FOUND )); then
echo "WP Rocket not found in: $d"
echo "If WP Rocket is not installed, you have nothing to do for this CVE."
fi
done
if (( SITES > 1 )); then
echo "Summary: $SITES sites with WP Rocket, $VULN_N vulnerable."
fi
exit 0
# 1 site
bash check-version-wprocket.sh /var/www/html
# All sites below 1 folder
bash check-version-wprocket.sh /var/www
# Version numbers from the Plugins page
bash check-version-wprocket.sh 3.23.5 3.24.1 3.24.2 3.24.3

Check the result:
- "VULNERABLE": a version below 3.24.2. Do steps 2 and 3 today.
- "SAFE from CVE-2026-125812": version 3.24.2. Update to 3.24.3 in the next change window, then run step 5.
- "SAFE, version 3.24.3 or later": still run step 5, because an attacker can use the flaw before the update.
- "UNKNOWN": the version number cannot be read. Compare it by hand with the Plugins page.
Our test result: in the /var/www folder the script found 2 dummy sites. The site with 3.24.1 shows VULNERABLE. The site with 3.24.2 shows SAFE from CVE-2026-125812. The test with 4 version numbers gives the same result as the version table.
Step 2: Check the plugin status and the exposed features
This step answers 2 questions: is WP Rocket active, and are the features with changed code on. The answers set the work order, not the safety status.
The script does not read the license. Open your WP Rocket account and check the license end date, because an expired license stops update access.
Save this script as check-exposure-wprocket.sh. The script uses WP-CLI as the web user, not root. The script only reads settings and does not change data.
#!/usr/bin/env bash
# Check exposure to CVE-2026-125812: WP Rocket version, features that use the fixed code, and related cache folders.
# Code fixed in 3.24.2: the CSS cache for "LazyLoad for CSS background images" and the font CSS for
# "Host Google Fonts locally". Source: official wp-rocket.me changelog and the fix commit in GitHub wp-media/wp-rocket.
# Use: sudo -u www-data bash check-exposure-wprocket.sh /var/www/html
# The script uses WP-CLI to read data. The script only reads. The script sends no attack requests.
# A feature that is off does NOT prove the site is safe. The version limit (3.24.2) stays the main rule.
DIR="${1:-/var/www/html}"
# WP-CLI loads the PHP code of the site. On a hacked site, that code can belong to the attacker.
# So the script does not run WP-CLI as root. As root, the script switches to the web user.
# setsid detaches the web user process from the root terminal, so it cannot inject keystrokes.
# Without setsid, the WP-CLI checks are skipped.
WPUSER="${WPUSER:-www-data}"
AS=()
if [ "$(id -u)" = 0 ]; then
[ "$WPUSER" = root ] && { echo "WPUSER must not be root."; exit 1; }
if ! command -v setsid >/dev/null 2>&1; then AS=(false)
elif command -v runuser >/dev/null 2>&1; then AS=(setsid -w runuser -u "$WPUSER" -- env HOME=/tmp)
elif command -v sudo >/dev/null 2>&1; then AS=(setsid -w sudo -u "$WPUSER" -- env HOME=/tmp)
else AS=(false); fi
fi
WP() { "${AS[@]}" wp --path="$DIR" --skip-themes --skip-plugins "$@" </dev/null 2>/dev/null; }
if ! command -v wp >/dev/null 2>&1 || [ -z "$(WP option get siteurl)" ]; then
echo "WP-CLI is missing or cannot read the site. Use check-version-wprocket.sh to check the version."
echo "Then open WP Rocket > Settings > Media (LazyLoad CSS background) and Optimize (local Google Fonts)."
exit 0
fi
echo "1. WP Rocket plugin status"
ver=$(WP plugin get wp-rocket --field=version)
st=$(WP plugin get wp-rocket --field=status)
if [ -z "$ver" ]; then
echo " WP Rocket is not installed. No action for this CVE."
exit 0
fi
echo " Version: $ver · Status: ${st:-unknown}"
VULN=0
if [ "$(printf '%s\n%s\n' "$ver" 3.24.2 | sort -V | head -n1)" != 3.24.2 ]; then
VULN=1
echo " CHECK: versions below 3.24.2 are open to CVE-2026-125812. Update in step 3."
else
echo " Version is safe from CVE-2026-125812. Still update to 3.24.3."
fi
echo "2. Features that use the fixed code (wp_rocket_settings setting)"
feature() {
local v; v=$(WP option pluck wp_rocket_settings "$1" | tr -d '[:space:]')
case "$v" in
1) echo " $2 ($1): ON" ;;
0|"") echo " $2 ($1): off" ;;
*) echo " $2 ($1): value $v" ;;
esac
}
feature lazyload_css_bg_img "LazyLoad for CSS background images"
feature host_fonts_locally "Host Google Fonts locally"
echo " A feature that is off does NOT prove the site is safe. Use the version limit as the rule."
echo "3. Related cache folders"
CONTENT=$(WP eval 'echo WP_CONTENT_DIR;')
[ -d "$CONTENT" ] || CONTENT="$DIR/wp-content"
for sub in background-css fonts; do
d="$CONTENT/cache/$sub"
if [ -d "$d" ]; then
n=$(find "$d" -type f 2>/dev/null | wc -l)
echo " wp-content/cache/$sub: exists, $n file(s)"
else
echo " wp-content/cache/$sub: not found"
fi
done
echo "4. Automatic updates"
au=$(WP plugin auto-updates status wp-rocket --field=status)
echo " WordPress auto-update setting for WP Rocket: ${au:-unknown}"
echo " WP Rocket turns off unattended automatic updates, whatever this setting says. An expired license stops access to updates."
echo " Update yourself through Plugins, Dashboard > Updates, or the ZIP from your WP Rocket account."
echo
if (( VULN )); then
echo "Result: CHECK, version $ver is vulnerable. Update to 3.24.3 today. A feature that is off does not change this result."
else
echo "Result: version $ver is safe from CVE-2026-125812. Still update to 3.24.3."
fi
# Run as the web user. Change www-data if your server uses another user.
sudo -u www-data bash check-exposure-wprocket.sh /var/www/html

Our test result: WP Rocket 3.24.1 is active on the dummy site, and both features are on. The background-css folder has 2 files and the fonts folder has 1 file. The script shows CHECK, because the version is below 3.24.2.
Check the result: an active plugin with a version below 3.24.2 is the first priority. A disabled feature does not make a site safe, because the ZeroPath analysis cannot confirm which features an attacker needs. An inactive plugin with an old version still needs an update or removal.
Step 3: Back up, then update to 3.24.3
Only the update closes this flaw. The WP Rocket update guide gives 3 update routes:
- Plugins page: click update now below WP Rocket. WP Rocket must be active.
- No notice: open Dashboard > Updates, then click Check Again.
- Manual ZIP: export the settings in the WP Rocket Tools tab, download the ZIP from the WP Rocket account, deactivate and delete the old plugin, upload the new ZIP, then import the settings.
Before the update, make a database backup and move the file off the server. On a server with WP-CLI, the order is:
# Run the wp commands as the web user, for example sudo -u www-data wp ...
cd /var/www/html
# Patch marker before the update (0 means old code)
grep -c ALLOWED_FILE_PATTERN wp-content/plugins/wp-rocket/inc/Engine/Common/Cache/FilesystemCache.php
# Back up the database and export the WP Rocket settings first, then move them off the server
wp db export /tmp/backup-before-update.sql
wp option get wp_rocket_settings --format=json > /tmp/wp-rocket-settings.json
# Update through the official ZIP from the WP Rocket account (manual path)
wp plugin install /tmp/wp-rocket-3.24.3.zip --force
# Check the version and the patch marker again (more than 0 means new code)
bash check-version-wprocket.sh /var/www/html
grep -c ALLOWED_FILE_PATTERN wp-content/plugins/wp-rocket/inc/Engine/Common/Cache/FilesystemCache.php

Our test result: the ALLOWED_FILE_PATTERN marker appears 0 times in 3.24.1 and 2 times in 3.24.3. The settings export has 182 bytes. After the update, the step 1 script shows "SAFE, version 3.24.3 or later".
The patch marker is Rama Digital analysis of the fix commit, not an official vendor check. We installed a ZIP from the public release tag on GitHub. On your site, use the ZIP from the WP Rocket account.

Check the result: the step 1 script shows "SAFE, version 3.24.3 or later" on each site. Then open the home page, 1 product or service page, and the checkout page if there is one. Clear the WP Rocket cache after the update.
Step 4: Turn off 2 features if the update must wait, NOT a fix
Use this step only if you cannot update today, for example because the license expired. This step does NOT make the site safe. The ZeroPath analysis says that public sources do not confirm which features an attacker needs.
Rama Digital analysis: turn off LazyLoad for CSS background images and local Google Fonts. The code of these 2 features changed in 3.24.2. This step removes some open paths, but the version stays vulnerable.
cd /var/www/html
# Values before (1 means the feature is on)
wp option pluck wp_rocket_settings lazyload_css_bg_img
wp option pluck wp_rocket_settings host_fonts_locally
# Turn off the 2 features that use the fixed code
wp option patch update wp_rocket_settings lazyload_css_bg_img 0
wp option patch update wp_rocket_settings host_fonts_locally 0
# Empty the cache of those 2 features
find wp-content/cache/background-css wp-content/cache/fonts -type f | wc -l
rm -rf wp-content/cache/background-css/* wp-content/cache/fonts/*

Our test result: both setting values changed from 1 to 0. After the settings changed, the cache folders of both features were already empty, so the rm command is only a backup. In our test, WP Rocket 3.24 has no wp rocket clean command.
Effect of this step: pages can load background images and fonts a little slower. Other WP Rocket features keep working. Turn the 2 features on again after step 1 shows "SAFE, version 3.24.3 or later".
Patchstack says it has a mitigation rule for its customers. The rule content is not public. A WAF from the host or CDN is also only an extra layer, not a replacement for the update.
Step 5: Look for signs of a break-in
The update closes the flaw, but it does not remove files, accounts, or changes that an attacker made. So look for traces before and after the update. Start from 19 November 2026 or earlier.
The vendor gives no IOCs. The signs below are Rama Digital analysis: general signs of files written in the wrong place.
.php,.phtml,.phar,.htaccess, or.user.inifiles insidewp-content/cache/.- New PHP files from the last 14 days outside the plugin, theme,
wp-admin, andwp-includesfolders, for example inwp-content/uploads/. - Requests with status 200 to
.phpfiles in/wp-content/cache/or/wp-content/uploads/in the access log. - New WordPress admin accounts that you do not know.
Save this script as check-signs-wprocket.sh. The script only reads files and logs. It does not change, delete, or send anything.
#!/usr/bin/env bash
# Look for signs of use of CVE-2026-125812 (path traversal in the WP Rocket cache) in files, accounts, and web access logs.
# The patterns below are "Rama Digital analysis". They are not IOCs from the vendor or from the advisory.
# Use: sudo bash check-signs-wprocket.sh /var/www/html [other log file ...]
# Run as root, because web access logs are usually readable by root only. WP-CLI still runs as www-data.
# Other web user: sudo WPUSER=apache bash check-signs-wprocket.sh /var/www/html
# The script only reads. The script deletes nothing. The script sends no attack requests.
DIR="${1:-/var/www/html}"
shift 2>/dev/null
CAND=("$@")
if (( ${#CAND[@]} == 0 )); then
for f in /var/log/apache2/access.log* /var/log/nginx/access.log* /var/log/httpd/access_log*; do CAND+=("$f"); done
fi
# Use regular files only. Skip symlinks to devices such as /dev/stdout, so the script does not hang.
LOGS=()
for f in "${CAND[@]}"; do [ -f "$f" ] && LOGS+=("$f"); done
# WP-CLI loads the PHP code of the site. On a hacked site, that code can belong to the attacker.
# So the script does not run WP-CLI as root. As root, the script switches to the web user.
# setsid detaches the web user process from the root terminal, so it cannot inject keystrokes.
# Without setsid, the WP-CLI checks are skipped.
WPUSER="${WPUSER:-www-data}"
AS=()
if [ "$(id -u)" = 0 ]; then
[ "$WPUSER" = root ] && { echo "WPUSER must not be root."; exit 1; }
if ! command -v setsid >/dev/null 2>&1; then AS=(false)
elif command -v runuser >/dev/null 2>&1; then AS=(setsid -w runuser -u "$WPUSER" -- env HOME=/tmp)
elif command -v sudo >/dev/null 2>&1; then AS=(setsid -w sudo -u "$WPUSER" -- env HOME=/tmp)
else AS=(false); fi
fi
WP() { "${AS[@]}" wp --path="$DIR" --skip-themes --skip-plugins "$@" </dev/null 2>/dev/null; }
WPOK=0
command -v wp >/dev/null 2>&1 && [ -n "$(WP option get siteurl)" ] && WPOK=1
CONTENT=""
(( WPOK )) && CONTENT=$(WP eval 'echo WP_CONTENT_DIR;')
[ -d "$CONTENT" ] || CONTENT="$DIR/wp-content"
if [ ! -d "$CONTENT" ]; then
echo "wp-content folder not found in: $DIR"
echo "Give the WordPress folder as an argument, for example: sudo bash check-signs-wprocket.sh /var/www/html"
exit 1
fi
# Text from the server and from logs can hold terminal control codes. Print safe characters only.
safe() { tr -cd '[:print:]\n'; }
signs=0
limit=$(date -d '14 days ago' '+%Y-%m-%d' 2>/dev/null || date '+%Y-%m-%d')
echo "1. Script files in wp-content/cache (the WP Rocket cache holds only HTML, CSS, JSON, fonts, and images)"
if [ -d "$CONTENT/cache" ]; then
scripts=$(TZ=UTC find "$CONTENT/cache" -type f \( -iname '*.php' -o -iname '*.phtml' -o -iname '*.phar' -o -iname '*.pht' \
-o -iname '*.php5' -o -iname '*.php7' -o -iname '*.phps' -o -iname '*.cgi' -o -iname '*.pl' -o -iname '*.py' -o -iname '*.sh' \
-o -name '.htaccess' -o -name '.user.ini' \) -printf '%TY-%Tm-%Td %TH:%TM %-9u %p\n' 2>/dev/null | safe)
n=$(printf '%s' "$scripts" | grep -c .)
if (( n > 0 )); then
echo " CHECK: $n script file(s) or server config file(s) (UTC time):"
printf '%s\n' "$scripts" | head -n 20 | sed 's/^/ /'
signs=$((signs + 1))
else
echo " 0 script files in the cache folder."
fi
else
echo " Cache folder not found."
fi
echo "2. PHP files new or changed in the last 14 days outside plugins, themes, wp-includes, wp-admin"
php=$(TZ=UTC find "$DIR" -type f \( -iname '*.php' -o -iname '*.phtml' -o -iname '*.phar' -o -iname '*.pht' -o -iname '*.php5' -o -iname '*.php7' -o -iname '*.phps' \) -mtime -14 \
-not -path "$CONTENT/plugins/*" -not -path "$CONTENT/themes/*" -not -path "$CONTENT/cache/*" -not -path "$CONTENT/languages/*" \
-not -path "$DIR/wp-includes/*" -not -path "$DIR/wp-admin/*" -printf '%TY-%Tm-%Td %TH:%TM %-9u %p\n' 2>/dev/null | safe)
n=$(printf '%s' "$php" | grep -c .)
if (( n > 0 )); then
echo " CHECK: $n file(s) (UTC time), 20 shown at most:"
printf '%s\n' "$php" | head -n 20 | sed 's/^/ /'
printf '%s' "$php" | grep -qF 'advanced-cache.php' && echo " WP Rocket also creates advanced-cache.php on activation. Match its time with the install time."
signs=$((signs + 1))
else
echo " 0 files."
fi
echo "3. WordPress administrators registered in the last 14 days"
if (( WPOK )); then
fresh=$(WP user list --role=administrator --fields=user_login,user_registered --format=csv | awk -F, -v d="$limit" 'NR>1 { t=$2; gsub(/"/,"",t); if (t >= d) print }' | safe)
if [ -n "$fresh" ]; then
echo " CHECK: new administrators:"
printf '%s\n' "$fresh" | sed 's/^/ /'
signs=$((signs + 1))
else
echo " 0 new administrators."
fi
else
echo " WP-CLI is missing or cannot read the site. Check by hand: Users > All users, newest first."
fi
echo "4. Status 200 requests for .php files in /wp-content/cache/ or /wp-content/uploads/ (web access log)"
if (( ${#LOGS[@]} == 0 )); then
echo " No access log found. Give the log path as an argument."
else
all=$(zcat -f "${LOGS[@]}" 2>/dev/null)
hit=$(printf '%s\n' "$all" | awk '$9 == 200 && tolower($7) ~ /^\/wp-content\/(cache|uploads)\/[^?]*\.php([?]|$)/' )
n=$(printf '%s' "$hit" | grep -c .)
echo " $n request(s)."
if (( n > 0 )); then
echo " Summary per IP:"
printf '%s\n' "$hit" | awk '{c[$1]++; p[$1]=$7} END {for (i in c) printf "%d\t%s\t%s\n", c[i], i, p[i]}' | sort -rn | head -n 10 \
| awk -F'\t' '{printf " IP %s: %s request(s), example %s\n", $2, $1, $3}' | safe
signs=$((signs + 1))
fi
fi
echo
echo "Note: these patterns are Rama Digital analysis, not vendor IOCs."
if (( signs > 0 )); then
echo "Result: $signs SIGNS need review. If that file or account is not from your team, go to incident response."
elif (( ! WPOK )); then
echo "Result: check 3 did not run, so the site is not proven clean. Check the administrator accounts by hand."
else
echo "Result: no SIGNS from this check. An attacker can erase traces, so still update and monitor."
fi
# Run as root so that the script can read the web access log
sudo bash check-signs-wprocket.sh /var/www/html
# Log in another location: put the log path after the site folder
sudo bash check-signs-wprocket.sh /var/www/html /var/log/nginx/site-a.access.log


Our test result: we put 2 dummy files in the cache folder, 1 dummy PHP file in uploads, 1 dummy admin, and 2 dummy log lines. The script found all 4 types of signs. The IP 203.0.113.77 is a documentation address per RFC 5737.
The script also shows advanced-cache.php and wp-rocket-config/localhost.php. These 2 files belong to WP Rocket. WP Rocket writes both files again when the settings change, so compare their time with the changes from your team.
Script limit: these patterns are general signs, not a full list. An attacker can delete files or logs after a break-in. The WP Rocket guide for hacked sites says that the page cache can also copy infected content. So a malicious cache file alone does not prove that this CVE was the way in.
If you find SIGNS, follow this order:
- Keep a copy of the access log, the file list, and the admin list before you change anything.
- Follow the WP Rocket guide for hacked sites: turn off preload, clear the cache, then deactivate WP Rocket.
- Delete unknown files and unknown admin accounts. Change the admin passwords and change the salts with
wp config shuffle-salts. - Update WordPress, the theme, and all plugins, including WP Rocket to 3.24.3.
- Activate WP Rocket again only after the site is clean. Watch the logs for 14 days.
Example: 1 morning of response for 4 client sites
This simulation uses dummy data. The site names, times, and results are not customer data.
| Time (WIB) | Dummy site | What we check | Result | Action |
|---|---|---|---|---|
| 08.00 | 4 client sites | Step 1 | 2 VULNERABLE, 1 SAFE from this CVE, 1 SAFE 3.24.3 | Add to the update queue this morning |
| 08.20 | toko-a | Step 2 | Active, LazyLoad CSS background and local fonts on. Account check: license expired | Renew the license. Turn off the 2 features first with step 4 |
| 08.40 | toko-a | Step 5 | SIGNS FOUND: 1 .php file in the cache folder | Keep evidence, follow the response order, then update |
| 09.30 | toko-a and klinik-b | Step 3 | Now on 3.24.3 | Clear the cache, check the home page and checkout |
| 10.00 | studio-c | Step 3 | 3.24.2 now on 3.24.3 | Record the version |
| 10.30 | All sites | Steps 1 and 5 again | SAFE 3.24.3 on 4 sites | Watch the logs for 14 days |
Lesson from this simulation: check the license before the update window, because an expired license blocks the update. Keep evidence before you delete files.
Who does the work
The WordPress admin or site developer owns the plugin update. The hosting operator owns server access, logs, and backups. The agency owns the WP Rocket license if the license is in the agency name. The business owner sets the update window for sites with transactions.
Rama Digital recommendation: record each site, plugin version, license owner, and license end date in 1 table. This table also helps when a new flaw appears, such as the WordPress core update flaw CVE-2026-119977.
Checklist for today
- List all sites with WP Rocket, including staging. Owner: site admin. Evidence: the site and version list.
- Check the version with step 1. Owner: site admin. Evidence: the script output.
- Check the plugin status and features with step 2, then check the license in the WP Rocket account. Owner: site admin. Evidence: the script output.
- Back up, then update to 3.24.3 with step 3. Owner: developer or admin. Evidence: the step 1 output after the update.
- If the update must wait, turn off 2 features with step 4. Owner: site admin. Evidence: the step 2 output.
- Look for signs with step 5 on each server. Owner: hosting operator. Evidence: the script output.
Questions and answers
LazyLoad for CSS background images is off on our site. Is the site safe?
Not for certain. The ZeroPath analysis says that public sources do not confirm the feature settings an attacker needs. The safe guide is version 3.24.2 or later.
Our WP Rocket license expired. How do we update?
An expired license stops update access. Renew the license, then update. If you cannot, turn off the 2 features in step 4 today, then replace WP Rocket with another cache plugin or remove the plugin.
Does 3.24.2 close the flaw, or must we go to 3.24.3?
Patchstack says that 3.24.2 closes this CVE. Version 3.24.3 is the latest version and adds the AI Assistant feature. We recommend 3.24.3 so that all sites use 1 version.
Can a hosting or CDN WAF replace the update?
No. A WAF only stops some attempts. Patchstack says it has a mitigation rule for its customers, but the rule content is not public. The update stays mandatory.
Does the update remove the WP Rocket settings?
For the manual ZIP route, the vendor tells you to export the settings first, then import them after the update. We did not test the settings export in the dashboard. Make a database backup before any route.
We use WP Rocket from an unofficial source. What must we do?
An unofficial copy gets no vendor updates and can contain malicious code. Remove that plugin, run step 5, then install the official ZIP from the WP Rocket account or another cache plugin.
We manage dozens of client sites. Where do we start?
Run step 1 on each server, then sort the sites with a VULNERABLE result. Do sites with transactions or forms first. Record the license owner of each site.
Does a clean result from the signs script prove that the site is safe?
No. The vendor gives no IOCs, and an attacker can remove traces. Keep evidence, watch the logs after the update, and ask for analysis when you are not sure.
Next step
Limits that still apply: step 4 does not make a site safe, and the update does not clean a site that was already broken into. If your site shows signs in step 5, or you need help with an audit and recovery, use Vibe Code Rescue. For 1 urgent problem today, book a 30 minute session.
Sources
- Patchstack advisory: vulnerable versions, fixed version, no login, priority, the 4 November report, and the mitigation rule.
- CVE-2026-125812 record and NVD: CWE-22, the CVSS vector, the publish date, and the CISA SSVC rating.
- CISA KEV: CVE-2026-125812 is not in the catalog on 27 November 2026.
- official WP Rocket changelog: the dates of 3.24.1, 3.24.2, and 3.24.3, and the security fix line.
- fix commit 0b37477: the changes to cache path, font, and preconnect validation.
- ZeroPath analysis: the features with changed code, the cache folders, and the version limit as the guide.
- WP Rocket update guide, WP Rocket auto-update document, and expired license document: the update routes, the disabled auto-updates, and update access after the license ends.
- WP Rocket guide for hacked sites: the recovery order and the cache that can copy infected content.

