{
  "url": "https://tldrcve.com/wp-rocket-rce/",
  "json": "https://tldrcve.com/wp-rocket-rce.json",
  "verdict_label": "Patch now if…",
  "scare_label": "Check today",
  "slug": "wp-rocket-rce",
  "name": "WP Rocket RCE",
  "aliases": [
    "wp rocket",
    "wp-rocket",
    "wordpress",
    "wordpress plugin",
    "wp media",
    "rocket_beacon",
    "lazyload for css background images",
    "self-host google fonts",
    "host fonts locally",
    "remote code execution",
    "path traversal"
  ],
  "cves": [
    "CVE-2026-125812"
  ],
  "product": "WP Rocket",
  "disclosed": "2026-11-23",
  "news": "2026-11-27",
  "updated": "2026-12-02",
  "verdict": "if",
  "tile_line": "Exploited, no login. Only with a risky setting on.",
  "tldr": "WP Rocket, a WordPress caching plugin, lets attackers with no login plant and run PHP code; attacks seen since 25 Nov. Only sites with LazyLoad for CSS background images or Self-host Google Fonts on are at risk. Update to 3.24.2 or later.",
  "summary": "WP Rocket reports page measurements from visitors' browsers to a public endpoint and didn't check the URLs in them strictly enough, so an attacker can make the site download a file from their own server and save it as PHP. Vorelito reported it through Patchstack's bug bounty on 4 Nov, the fix shipped on 19 Nov, and Patchstack saw the first attack on 25 Nov at 15:27 UTC, about three hours after the CVE record went public; the \"KEV\" label in Patchstack's database is its own, as CISA's catalog doesn't list it. Sources disagree on which versions are affected: WP Rocket says 3.15 to 3.24.1, Patchstack and the CVE record say every version before 3.24.2; WP Rocket's changelog backs the narrower range, as the two features arrived in 3.15 and 3.18.",
  "status": {
    "exploit": "demonstrated",
    "attacks": "seen",
    "kev": null,
    "scare": 2.8,
    "no_login": true
  },
  "status_cite": {
    "no_login": [
      1,
      2
    ],
    "exploit": [
      2
    ],
    "attacks": [
      2,
      1
    ],
    "kev": [
      9,
      3,
      4
    ]
  },
  "affected": [
    {
      "label": "WP Rocket older than 3.24.2",
      "text": "3.24.2 (19 Nov 2026) fixes it. WP Rocket says only 3.15 to 3.24.1 are affected; Patchstack and the CVE record say every version before 3.24.2. WP Rocket's changelog fits the vendor's range: LazyLoad for CSS background images arrived in 3.15 and Self-Host Google Fonts in 3.18. You can also see the version under Plugins in your dashboard.",
      "cmd": "wp plugin get wp-rocket --field=version",
      "cite": [
        1,
        2,
        3,
        5,
        7
      ]
    },
    {
      "label": "A risky setting is on",
      "text": "At least one of these is on: LazyLoad for CSS background images, Self-host Google Fonts. Both are under WP Rocket > Page Optimization > Image & Media (in the Media tab before 3.24). Patchstack calls the second one Host Fonts Locally and says both are off by default but common on performance-tuned sites; WP Rocket doesn't say. The command prints each setting; `0` means off. They are stored as `lazyload_css_bg_img` and `host_fonts_locally` in `wp_rocket_settings`, the names WP Rocket's own mitigation helper switches off.",
      "cmd": "wp option pluck wp_rocket_settings lazyload_css_bg_img; wp option pluck wp_rocket_settings host_fonts_locally",
      "cite": [
        1,
        2,
        6,
        8
      ]
    },
    {
      "label": "Attackers can reach the site",
      "text": "Attacks go to `POST /wp-admin/admin-ajax.php` with `action=rocket_beacon`, which Patchstack calls a public endpoint. No login is needed, so any site reachable from the internet qualifies.",
      "cite": [
        2,
        1
      ]
    }
  ],
  "do": [
    {
      "label": "Update WP Rocket",
      "text": "Update to 3.24.2 or later; 3.24.3 came out on 26 Nov. With an active licence, WP Rocket says to go to Plugins, find WP Rocket, select Update now and confirm the installed version. With an expired licence, turn off both settings (next step) while you arrange a renewal.",
      "cite": [
        1,
        5
      ],
      "versions": [
        "wp-rocket"
      ]
    },
    {
      "label": "Can't update yet?",
      "text": "Turn off LazyLoad for CSS background images and Self-host Google Fonts, save, and confirm both are off on each site. WP Rocket says this \"mitigates the documented attack paths\"; keep them off until you're on 3.24.2. For many sites, WP Rocket offers a helper plugin that forces both off, installed with the command shown. On Multisite, activate it on each site: `wp plugin activate wp-rocket-mitigate-cve-2026-125812 --url=https://example.com/subsite/`.",
      "cmd": "wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activate",
      "cite": [
        1,
        6,
        2
      ]
    },
    {
      "label": "Look for a break-in",
      "text": "Updating or turning the settings off doesn't remove PHP files an attacker already planted. If a site ran an affected version with either setting on (WP Rocket's condition), Patchstack says to check `wp-content/wp-rocket-config/`, `wp-content/uploads/` and `wp-content/` itself for unexpected PHP files, such as `wp-media-*.php`, and to review old logs: `rocket_beacon` requests from clients that never loaded the page they report on, and outbound requests from your server to unfamiliar hosts, `nip.io` names or `trycloudflare.com` tunnels. WP Rocket says files or accounts an attacker created need their own investigation by your host or security team. The command is ours, run from the WordPress folder; WP Rocket keeps its own config files in `wp-rocket-config`, named after your site. In `wp-content/` itself, WP Rocket's own `advanced-cache.php` is expected.",
      "cmd": "find wp-content/wp-rocket-config wp-content/uploads -name '*.php'; ls wp-content/*.php",
      "cite": [
        2,
        1,
        10
      ]
    }
  ],
  "fixed_in": {
    "wp-rocket": {
      "3.24": "3.24.2"
    }
  },
  "sources": [
    {
      "title": "WP Rocket: advisory for CVE-2026-125812, affected versions and settings, where they live, workaround, helper plugin and WP-CLI commands, 3.24.2 release date",
      "url": "https://wp-rocket.me/docs/wp-rocket-security-advisory-and-mitigation-steps-for-cve-2026-125812/",
      "date": "27 Nov"
    },
    {
      "title": "Patchstack: attacks since 25 Nov, how it works, settings off by default, the endpoint, what to look for, planted files stay",
      "url": "https://patchstack.com/articles/critical-wp-rocket-rce-cve-2026-125812-under-active-attack/",
      "date": "27 Nov"
    },
    {
      "title": "CVE record: CVE-2026-125812, every version before 3.24.2, CVSS 9.8, credited to Vorelito, CISA's SSVC entry",
      "url": "https://cveawg.mitre.org/api/cve/CVE-2026-125812",
      "date": "25 Nov"
    },
    {
      "title": "Patchstack database: published 23 Nov, reported 4 Nov, Patchstack's own exploited (KEV) label",
      "url": "https://patchstack.com/database/wordpress/plugin/wp-rocket/vulnerability/wordpress-wp-rocket-plugin-3-24-2-remote-code-execution-rce-vulnerability",
      "date": "23 Nov"
    },
    {
      "title": "WP Rocket: changelog, 3.24.2 security fix, 3.24.3, LazyLoad for CSS background images in 3.15, Self-Host Google Fonts in 3.18",
      "url": "https://wp-rocket.me/changelog/"
    },
    {
      "title": "GitHub: WP Rocket mitigation helper, the setting names it turns off",
      "url": "https://github.com/wp-media/wp-rocket-helpers/tree/master/various/wp-rocket-mitigate-cve-2026-125812"
    },
    {
      "title": "WP-CLI: wp plugin get",
      "url": "https://developer.wordpress.org/cli/commands/plugin/get/"
    },
    {
      "title": "WP-CLI: wp option pluck",
      "url": "https://developer.wordpress.org/cli/commands/option/pluck/"
    },
    {
      "title": "CISA KEV catalog: not listed",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"
    },
    {
      "title": "GitHub: WP Rocket 3.24.3 code, config files in wp-rocket-config named after the site",
      "url": "https://github.com/wp-media/wp-rocket/blob/v3.24.3/inc/functions/files.php"
    }
  ],
  "changes": [
    {
      "date": "2026-12-02",
      "text": "Published."
    }
  ],
  "safe_versions": [
    {
      "id": "wp-rocket",
      "name": "WP Rocket",
      "url": "https://tldrcve.com/versions/wp-rocket/",
      "json": "https://tldrcve.com/versions/wp-rocket.json",
      "checked": "2026-12-03",
      "lines": [
        {
          "line": "3.24",
          "latest": "3.24.3",
          "released": "2026-11-26"
        }
      ],
      "older": "WP Rocket's changelog shows a single release line. Anything before 3.24.2 lacks the CVE-2026-125812 fix; update to the latest. Check with `wp plugin get wp-rocket --field=version`."
    }
  ]
}
