Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2024-25600: Unauthenticated PHP Code Execution in WordPress Bricks Builder

Published Jun 4, 2024 · Updated 22 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS10.0Critical · v3.1
EPSS73.1%100th percentile
CISA KEVNoNot listed
In the wildReported4 exploitation records in Mallory
Vendor
Bricks Builder
IdentifiersCVE-2024-25600CWE-94 · Improper Control of Generation of…

CVE-2024-25600 is a code injection vulnerability affecting the Bricks Builder theme for WordPress through version 1.9.6. The prepare_query_vars_from_settings() function passes attacker-controlled queryEditor content to eval(). The render_element REST API permission callback validates a publicly accessible nonce without adequately checking user permissions, allowing unauthenticated attackers to reach the vulnerable code path. Default installations are exploitable. Version 1.9.6.1 fixes the vulnerability by adding permission checks and sanitizing PHP query content.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises the confidentiality, integrity, and availability of the affected WordPress environment through arbitrary server-side PHP execution. Potential consequences include sensitive data theft, website defacement, malware or backdoor installation, service disruption, and use of the compromised server for further attacks, subject to the privileges of the PHP process. Active exploitation has been confirmed, including deployment of malware capable of disabling Wordfence and Sucuri security plugins.

Mitigation

If you can’t patch tonight, do this now.

Apply a vulnerability-specific virtual patch where available; Patchstack deployed one for its customers. Increase monitoring for suspicious POST requests to the Bricks render_element REST API endpoint and inspect request bodies to distinguish exploitation attempts from legitimate rendering activity. A successful HTTP response alone does not establish exploitation.

Remediation

Patch, then assume compromise.

Upgrade Bricks Builder to version 1.9.6.1 or later. The fix adds authorization checks to render_element_permissions_check() and sanitizes PHP query content using Helpers::sanitize_element_php_code(). Investigate potentially exposed installations for prior compromise and remove any discovered malicious changes or persistence; updating alone does not remediate an existing compromise.

Public exploits

Exploits

18 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
wp_bricks_builder_rce.rbThis repository contains a single Metasploit module (wp_bricks_builder_rce.rb) that exploits an unauthenticated remote code execution (RCE) vulnerability in the Bricks Builder Theme for WordPress (versions <= 1.9.6, CVE-2024-25600). The exploit works by first retrieving a nonce from the main page, then sending a crafted POST request to the '/index.php?rest_route=/bricks/v1/render_element' endpoint with a malicious payload. The payload is executed via PHP's eval() function, allowing arbitrary code execution. The module supports multiple platforms (PHP, Unix, Windows) and can deliver various payloads, including Meterpreter shells. The code is weaponized, leveraging Metasploit's framework for payload delivery and session management. The repository is structured as a typical Metasploit exploit module, with all logic contained in a single Ruby file.Disclosed Feb 19, 2024 · Framework: metasploit · ruby · networkWeaponizedCVE-2024-25600This repository provides a Python-based exploit tool targeting CVE-2024-25600, a critical unauthenticated remote code execution vulnerability in the Bricks Builder plugin for WordPress (versions 1.8 through 1.9.6). The exploit automates the process of retrieving a required nonce from the target site, then sends specially crafted POST requests to the vulnerable REST API endpoint (/wp-json/bricks/v1/render_element or /?rest_route=/bricks/v1/render_element). The payloads leverage different element types and settings to inject PHP code or commands, resulting in arbitrary code execution on the server. The tool supports both interactive and batch exploitation modes, allows payload customization, and can confirm successful RCE. The repository consists of a main exploit script (exploit.py), a requirements file for dependencies, and a detailed README with usage instructions and PoC payloads. No hardcoded IPs or domains are present; the tool is designed to be used against user-supplied WordPress site URLs.Chocapikk · Disclosed Feb 20, 2024 · python · networkOperationalCVE-2024-25600-Bricks-Builder-plugin-for-WordPressThis repository provides a Python-based exploit tool targeting CVE-2024-25600, a critical unauthenticated remote code execution vulnerability in the Bricks Builder plugin for WordPress (up to version 1.9.6). The exploit automates the process of retrieving a required nonce from the target site and then sends a specially crafted POST request to the vulnerable REST API endpoint (/wp-json/bricks/v1/render_element). The payload leverages the 'queryEditor' field to inject and execute arbitrary commands on the server. The tool supports both interactive and batch modes, allowing exploitation of single or multiple targets. The main code is in 'exploit.py', which handles nonce extraction, vulnerability checking, command execution, and user interaction. The repository also includes a README.md with detailed usage instructions and PoC payloads, and a requirements.txt listing necessary Python dependencies. The exploit is operational and provides an interactive shell for command execution if the target is vulnerable.Tornad0007 · Disclosed Feb 22, 2024 · python · networkOperationalCVE-2024-25600The repository contains README.md with usage instructions and bricks.py, a standalone Python exploit for CVE-2024-25600. The script fetches an operator-supplied WordPress page, extracts the Bricks nonce using BeautifulSoup and a regular expression, and submits PHP command-execution payloads to the Bricks render_element REST endpoint. Visible initial payloads target container and carousel query settings. Successful responses containing 'Exception' lead to an interactive HTTP command loop; output cleanup handles English and German Bricks placeholder messages. The script invokes four payload functions sequentially, but the supplied source is truncated, so the complete implementations of all variants cannot be verified. Reliability limitations include no clean abort after nonce-extraction failure, broad exception-text success checks, and potentially undefined output when responses do not match either expected placeholder. TLS verification is disabled. No reverse-shell callback, persistence mechanism, or hardcoded exfiltration destination is visible. The README's GitHub link is a reference, not an endpoint contacted by the code. The affected version range is associated with the CVE; the script does not check versions. Original repository URL, Git ref, and archive size were not supplied, so empty strings and zero represent unavailable metadata.diamorphine666 · Disclosed Aug 20, 2024 · python · web · networkOperationaltest-task-CVE-2024-25600This repository provides a full exploit environment and exploit code for CVE-2024-25600, a remote code execution vulnerability in the Bricks Builder WordPress plugin. The repository includes a Dockerized WordPress setup (with plugins and themes) for local testing, and a Python exploit script (exploit/exploit.py) that targets the Bricks Builder REST API endpoints. The exploit works by first retrieving a nonce from the target site, then sending a crafted POST request to the /bricks/v1/render_element endpoint with a PHP payload that executes arbitrary system commands. The exploit script provides an interactive shell to the attacker, allowing arbitrary command execution as the web server user. The main fingerprintable endpoints are the local test WordPress site (http://127.0.0.1:8080) and the Bricks Builder REST API endpoints. The exploit is operational and demonstrates full remote code execution capabilities.Sibul-Dan-Glokta · Disclosed Jan 26, 2025 · python · php · networkOperationalCVE-2024-25600This repository contains a fully functional exploit for CVE-2024-25600, a critical unauthenticated remote code execution (RCE) vulnerability in the Bricks Builder plugin for WordPress (versions <= 1.9.6). The exploit is implemented in Python (two scripts: 'exploit.py' and 'IF OTHER DOESNT WORK TRY THIS.py', which are functionally similar). The exploit works by first fetching a nonce from the target WordPress site, then sending a specially crafted POST request to the '/wp-json/bricks/v1/render_element' REST API endpoint. The payload abuses the 'queryEditor' parameter to inject PHP code that executes arbitrary system commands, with the output returned via an exception in the HTML response. The script supports both single-target and bulk scanning, and provides an interactive shell for command execution on vulnerable targets. The repository also includes a README with detailed usage instructions and a LICENSE file. The exploit is operational and can be used to fully compromise affected WordPress sites running the vulnerable plugin.so1icitx · Disclosed Mar 31, 2025 · python · networkOperationalcve-2024-25600This repository contains a working exploit for CVE-2024-25600, an unauthenticated remote code execution (RCE) vulnerability in the Bricks Builder WordPress plugin (version 1.9.6 and below). The exploit is implemented in Python (exploit.py) and provides both single-target and mass-scanning capabilities. It works by first fetching a required nonce from the target site's HTML, then sending a specially crafted JSON payload to the /wp-json/bricks/v1/render_element REST API endpoint. The payload abuses the 'queryEditor' parameter to inject PHP code that executes arbitrary system commands. If successful, the exploit provides an interactive shell for the attacker, allowing ongoing command execution on the compromised server. The repository also includes a README.md with usage instructions and a LICENSE file. The exploit is operational and can be used for both vulnerability verification and post-exploitation command execution.meli0dasH4ck3r · Disclosed Apr 4, 2025 · python · networkOperationaloblivion-cve-2024-25600-scannerThis standalone Python repository contains an actual exploitation path for CVE-2024-25600, not merely a passive vulnerability detector. main.py retrieves a publicly exposed Bricks nonce, then submits a crafted carousel element to /wp-json/bricks/v1/render_element. Its queryEditor field injects PHP that executes an OS command using backticks and throws an exception containing the output. Response processing looks for an Exception marker inside data.html. Single-target mode attempts verification before entering an interactive command interface; list mode uses asyncio.gather for concurrent scans. The six files comprise one Python entry point, pinned dependencies in requirements.txt, README documentation, an MIT license, a code of conduct, and Git ignore rules. Dependencies are aiohttp, beautifulsoup4, rich, and prompt_toolkit. There is no identified exploit framework, fixed target host, callback server, or exfiltration destination. Documentation and community links are not contacted by the visible exploit code. Important limitations: main.py is truncated in the supplied material, omitting parts of the interactive shell, vulnerability check, and per-target scanning implementation. Exploit success is therefore not established. The visible send_request method also returns an aiohttp response after leaving its context manager, potentially preventing subsequent JSON body reads unless the body has already been cached. JSON decoding and unexpected response structures are not comprehensively handled. The implementation disables TLS verification and enables environment-derived session settings through trust_env=True. The README calls Bricks a plugin, while the code identifies the Bricks theme. No target version check is visible. Repository reference and archive size were not supplied; size_bytes=0 represents unavailable metadata, not an empty repository.OblivionDH · Disclosed Apr 9, 2025 · python · webOperationaloblivion-cve-2024-25600-scannerThe repository contains one standalone Python scanner/exploit, main.py, plus requirements.txt, README.md, an MIT license, a code of conduct, and .gitignore. Dependencies are pinned to aiohttp 3.9.3, beautifulsoup4 4.12.2, rich 13.7.0, and prompt_toolkit 3.0.43. It is not a recognized exploit-framework module. The visible exploit fetches a target page, extracts a publicly exposed Bricks nonce, and submits a crafted JSON request to /wp-json/bricks/v1/render_element. The carousel query editor contains PHP that executes a command using backticks and throws an exception with the output. Response processing searches data.html for an Exception marker. The default probe is whoami; the CLI also exposes concurrent list scanning and an intended interactive command interface. Despite being advertised as a scanner, it actively attempts exploitation, not merely version detection. Both target requests disable TLS certificate verification and use 10-second timeouts. The HTTP client uses trust_env=True, allowing environment-derived proxy configuration. No fixed callback, command-and-control, exfiltration destination, persistence mechanism, or destructive payload appears in the visible code. Documentation links are project, community, or attribution references rather than exploit destinations. There is an implementation concern: send_request returns the response from inside an async context manager, after which process_response attempts to read its body. The response may already be released or closed, potentially preventing output retrieval. Additionally, the fallback message asserting authentication bypass is based on exception parsing rather than independent verification of that claim. The supplied main.py is explicitly truncated, preventing complete validation of shell handling, scan classification, and file output. The repository reference and archive size were not supplied; the empty reference and zero size are placeholders for unavailable metadata.ivanbg2004 · Disclosed Apr 9, 2025 · python · webOperationalPoleposphThis repository contains a Python exploit tool (Poleposph.py) targeting CVE-2024-25600, a remote code execution vulnerability in the WordPress Bricks Builder plugin. The main file, Poleposph.py, is a command-line tool that can scan single or multiple WordPress sites for the vulnerability and, if found, provides an interactive shell for executing arbitrary PHP commands on the target server. The exploit works by first fetching a nonce value from the target site, then sending a crafted JSON payload to the Bricks Builder REST API endpoints (/wp-json/bricks/v1/render_element or /?rest_route=/bricks/v1/render_element) to trigger code execution. The repository also includes a README.md with a brief description and a LICENSE file. The exploit is operational, providing real command execution on vulnerable targets, and is not part of a larger framework.DedsecTeam-BlackHat · Disclosed May 9, 2025 · python · networkOperationalCVE-2024-25600This repository provides a Python-based exploit for CVE-2024-25600, a remote code execution vulnerability in the Bricks Builder WordPress plugin. The main exploit script (cve_2024_25600_bricks_rce.py) automates the process of extracting a required nonce from the target, testing for vulnerability, and injecting a PHP backdoor via a vulnerable REST API endpoint. Once the backdoor is in place, the attacker can execute arbitrary system commands on the target by sending HTTP GET requests with a 'cmd' parameter. The script supports single or multiple targets, proxying (e.g., via Burp Suite), and logs results to a file. An auxiliary analysis script (analyze_results.py) parses the output logs, extracts user and token information, and performs IP geolocation lookups for reporting. The exploit is operational, providing a working payload and automation for exploitation and post-exploitation analysis. The main attack vector is network-based, targeting the exposed REST API endpoint of vulnerable WordPress installations.r0otk3r · Disclosed Jul 10, 2025 · python · networkOperationalCVE-2024-25600This repository contains a Python exploit for CVE-2024-25600, a critical unauthenticated remote code execution vulnerability in the WordPress Bricks Builder plugin (prior to version 1.9.6). The exploit targets the 'render_element' REST API endpoint, which improperly handles user input, allowing arbitrary PHP code execution. The repository consists of two files: a README.md with usage instructions and a detailed description, and 'cve-2024-25600.py', the main exploit script. The script automates nonce extraction, supports both vulnerable endpoints, and provides an interactive shell for executing arbitrary commands on the target server. It also supports bulk scanning of multiple targets via a file and multi-threading. The exploit works by injecting PHP code that executes system commands and returns their output, effectively granting the attacker remote shell access. The code is operational and provides a working exploit with an interactive shell, but is not part of a larger exploitation framework.ranjithxploit · Disclosed Nov 28, 2025 · python · networkOperationalTryHack3M-Bricks-HeistThis repository contains a fully functional exploit for CVE-2024-25600, a critical unauthenticated remote code execution vulnerability in the Bricks Builder WordPress plugin (versions <=1.9.6). The main exploit script, 'Exploit/brickbreaker.py', is a Python 3 tool that automates exploitation by interacting with the vulnerable REST API endpoint '/wp-json/bricks/v1/render_element'. It supports multiple payload types (code, container, carousel), provides an interactive shell with rich formatting, and enables file upload/download and reverse shell generation. The exploit is operational and can be used for both single-target and batch exploitation. The repository also includes a detailed README with usage instructions and a writeup documenting exploitation steps and post-exploitation analysis. The exploit is not part of a framework and is self-contained, requiring only Python and the 'httpx' and 'rich' libraries.h0w1tzxr · Disclosed Jan 4, 2026 · python · networkOperationalCVE-2024-25600-WordPress-Bricks-Builder-RCE-PoCRepository contains a single Python PoC exploit (CVE-2024-25600.py) plus a README. The exploit targets CVE-2024-25600 (unauthenticated RCE in WordPress Bricks Builder <= 1.9.6) by abusing the Bricks template render REST endpoint. Core flow in CVE-2024-25600.py: - fetch_nonce(target): GETs the target homepage (TLS verification disabled) and parses HTML with BeautifulSoup to find a script tag with id "bricks-scripts-js-extra"; extracts a hex nonce via regex. - check_payload(nonce): builds a JSON body that triggers a PHP Exception containing a fixed marker string (KHABuhwxnUHDDW) to confirm code execution. - shell_payload(nonce, command): builds a JSON body that injects PHP ("<?php throw new Exception(`{command}`);?>") to execute arbitrary OS commands via backticks. - exploit(target): iterates over two known endpoint paths ("/wp-json/bricks/v1/render_element" and "/?rest_route=/bricks/v1/render_element"), POSTs the check payload, and if the marker is observed, launches interactive_shell. - interactive_shell(target, nonce, working_path): provides a prompt_toolkit-based interactive loop; each command is POSTed to the vulnerable endpoint and output is extracted from response JSON at data.html (with "Exception: " stripped). Notable characteristics: - Unauthenticated network RCE with interactive command execution. - No hardcoded C2 infrastructure; only user-supplied target URL is contacted. - Uses a simple exception-based output channel (command output returned inside the thrown Exception and reflected in the endpoint response).estebanzarate · Disclosed Feb 18, 2026 · python · networkOperationalWP-Bricks-Exploit-CVE-2024-25600Repository is a small standalone Python exploit project for CVE-2024-25600, an unauthenticated RCE in the WordPress Bricks Builder theme. Structure is simple: one main Python script (cve-2024-25600.py), a README, requirements file, and license. The exploit is not part of a larger framework. The main script is a feature-rich operational exploit rather than a minimal PoC. Based on the visible code and README, it supports configurable timeouts, retries, delays, proxying, SSL verification toggles, random User-Agent rotation, stealth header randomization, async or threaded multi-target scanning, endpoint selection, force mode, logging, and output saving. It uses requests and aiohttp for HTTP interactions, BeautifulSoup for parsing, prompt-toolkit for an interactive shell UX, and rich for terminal output. Core exploit flow: retrieve target content, extract a Bricks nonce using multiple regex patterns, then send crafted POST requests to one of two vulnerable REST endpoints (/wp-json/bricks/v1/render_element or /?rest_route=/bricks/v1/render_element). Successful exploitation is validated with a hardcoded marker string (KHABuhwxnUHDDW), indicating controlled command execution. The tool can then execute arbitrary commands, run in single-command mode, or provide an interactive shell-like interface. Additional post-exploitation/assessment capabilities described in the repository include reverse-shell helper generation for multiple languages/utilities, version detection for Bricks Builder, attempts to extract wp-config.php, and bulk scanning from a target list. The presence of reverse-shell options and command execution support makes this more than a detector; however, it is still a standalone script with relatively fixed workflows rather than a modular framework payload system, so OPERATIONAL is the best maturity fit. Fingerprintable targets are primarily the Bricks Builder REST endpoints and the local artifacts bricks_rce.log and wp-config.php. No hardcoded external C2, callback IPs, or attacker-controlled domains are present in the provided content.CerberusMrXi · Disclosed Jul 16, 2026 · python · markdown · web · networkOperationalCVE-2024-25600The repository contains one standalone Python exploit, bricks_rce.py, a usage-oriented README.md, and a standard Python .gitignore. There is no exploit framework integration, dependency manifest, test suite, or additional payload file in the supplied inventory. The script accepts a target through --url or an interactive prompt, fetches a publicly exposed Bricks nonce, and probes two REST routing forms using a container query that executes a fixed echo command. HTTP 200 plus the marker KHABuhwxnUHDDW is required before entering a pseudo-shell. Subsequent requests switch to the code element and wrap operator commands in PHP backticks, returning their output through an exception. The README identifies versions <= 1.9.6 as vulnerable and 1.9.6.1 as fixed. TLS certificate verification is disabled throughout, warnings are suppressed, requests use a fixed mobile-browser User-Agent, and command history is kept only in memory. The implementation performs no version check, and failed nonce extraction, blocked routes, response-format differences, or restricted PHP execution can prevent success. Static inspection supports a genuine exploit implementation, but execution was not verified. No hardcoded target host or callback destination exists; README example URLs and /etc/passwd are not automatically contacted or accessed. Repository URL is inferred from the README; the analyzed revision and archive size were not supplied. size_bytes=0 denotes unavailable archive metadata; the three listed file sizes sum to 15,822 bytes.K52-ai · Disclosed Oct 18, 2026 · python · web · networkOperationalCVE-2024-25600-FOR-PYTHON-3.8-AND-ABOVEThis standalone Python exploit targets CVE-2024-25600 in Bricks Builder for WordPress. The repository contains three files: README.md documents installation and interactive/batch usage; exploit.py implements nonce discovery, malicious REST requests, response parsing, and an interactive command interface; requirements.txt lists alive_progress, bs4, prompt_toolkit, requests, and rich. The exploit retrieves a public page, extracts a hexadecimal nonce from the bricks-scripts-js-extra script element, and submits it to the Bricks render_element REST route with malicious element settings. Four payload layouts are implemented: generic, carousel, container, and code. Each attempts to execute PHP containing a backtick shell command and return its output through an exception terminated by END. The visible default command is whoami. Successful extraction of nonempty exception output is treated as command-execution confirmation; other nonempty HTTP 200 content can be classified as potentially vulnerable without confirming RCE. Batch mode reads target URLs from a local file and uses up to 100 worker threads. Interactive mode is entered after the vulnerability check reports successful RCE. Requests disable TLS verification, suppress related warnings, and use 20-second timeouts. No fixed target domains, IP addresses, external callback infrastructure, persistence mechanisms, or reverse-shell payloads are visible. The supplied exploit.py content is truncated, omitting portions of the interactive handler, vulnerability-checking logic, batch helper, and argument definitions. Consequently, the exact output-file behavior and omitted checks cannot be fully verified. No repository URL, Git reference, or archive size was provided; their metadata fields use empty strings and a zero placeholder.eunbyulaakash · Disclosed Nov 3, 2026 · python · web · networkOperationalCVE-2024-25600-EXPLOITThis repository contains a Python proof-of-concept exploit for CVE-2024-25600, a critical unauthenticated remote code execution vulnerability in the Bricks Builder plugin for WordPress (versions up to and including 1.9.6). The main file, 'CVE-2024-25600.py', provides both single-target and multi-target (file-based) exploitation modes. It works by first fetching a required nonce from the target site, then sending specially crafted POST requests to the vulnerable REST API endpoints ('/wp-json/bricks/v1/render_element' and '/?rest_route=/bricks/v1/render_element'). The payload injects PHP code that executes arbitrary system commands, providing an interactive shell to the attacker. The exploit is unauthenticated and leverages the plugin's improper handling of user input. The repository also includes a README.md with background, impact, and mitigation advice. No hardcoded IPs or domains are present; the exploit is designed to be used against user-supplied targets.K3ysTr0K3R · Disclosed Mar 1, 2024 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Bricks BuilderBricksapplication
FAQ

Frequently asked questions

Is CVE-2024-25600 exploited in the wild?
Yes. As of Nov 6, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2024-25600?
Yes. Mallory tracks 18 public exploits or proofs of concept for CVE-2024-25600, the earliest disclosed Feb 19, 2024.
Is there a patch for CVE-2024-25600?
Upgrade Bricks Builder to version 1.9.6.1 or later. The fix adds authorization checks to render_element_permissions_check() and sanitizes PHP query content using Helpers::sanitize_element_php_code().
What products are affected by CVE-2024-25600?
Bricks Builder Bricks.
How severe is CVE-2024-25600?
CVE-2024-25600 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 73.1% (100th percentile) as of Nov 6, 2026.
Activity feed

Recent activity

9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+3 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.