
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-2052 is a Remote Code Execution (RCE) vulnerability in the Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets WordPress plugin, developed by Marketing Fire, LLC. It affects all versions up to and including 4.2.2, with a partial patch introduced in version 4.2.0. The vulnerability was published on May 2, 2026, and assigned a CVSS v3.1 base score of 8.8 (High) (GitHub Advisory, Wordfence).
The root cause is classified as CWE-94 (Improper Control of Generation of Code / Code Injection). The plugin passes user-supplied Display Logic expressions directly to PHP's eval() function, relying on an insufficient blocklist/allowlist for sanitization. This blocklist can be bypassed by using array_map combined with string concatenation to construct and execute arbitrary PHP code. Compounding the issue, the extended_widget_opts_block attribute lacks proper authorization enforcement, meaning any authenticated user with Contributor-level access or above can supply malicious Display Logic expressions. Relevant source code is visible in the plugin's extras.php (lines 495 and 534) and gutenberg-toolbar.php (line 843) (GitHub Advisory, Wordfence).
Successful exploitation allows an authenticated attacker with Contributor-level access to execute arbitrary PHP code on the server, resulting in high confidentiality, integrity, and availability impact. This can lead to complete WordPress site compromise, including unauthorized access to sensitive data (database credentials, user data), installation of malware or backdoors, defacement, and potential lateral movement to the underlying server infrastructure. No user interaction is required beyond the attacker having a valid Contributor account, making exploitation straightforward once credentials are obtained (GitHub Advisory, Wordfence).
As of the time of disclosure, no public proof-of-concept exploit code has been identified, and there is no confirmed evidence of in-the-wild exploitation (Wordfence). The EPSS score is approximately 0.057–0.074%, placing it in the 22nd percentile for exploitation likelihood within 30 days (GitHub Advisory). The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No specific threat actor attribution has been reported.
array_map with string concatenation. For example, a payload that concatenates function names to evade keyword filtering and executes arbitrary system commands.extended_widget_opts_block attribute to the malicious Display Logic expression. Because authorization is not enforced on this attribute, the server will accept it.eval() call executes the injected PHP code, achieving arbitrary code execution (e.g., spawning a reverse shell, reading /etc/passwd, or writing a web shell) (GitHub Advisory, Wordfence)./wp-json/wp/v2/posts or /wp-json/wp/v2/pages) from Contributor-level accounts containing unusual extended_widget_opts_block attribute values with encoded or concatenated PHP function names.eval() execution errors or output from the widget-options plugin files (extras.php, gutenberg-toolbar.php).apache2, php-fpm) such as bash, curl, wget, or python executing outbound connections.Site administrators should immediately update the Widget Options plugin to a version beyond 4.2.2, as the complete patch was released after that version (changeset 3514411 on the WordPress plugin repository) (GitHub Advisory, Wordfence). If an immediate update is not possible, restrict Contributor-level account creation and access to only fully trusted users, and consider disabling the Display Logic feature within the plugin settings. Audit all existing Contributor-level accounts for suspicious activity and review server logs for signs of exploitation. A Web Application Firewall (WAF) with rules targeting PHP code injection patterns may provide additional interim protection.
Wordfence published the vulnerability in their weekly WordPress vulnerability report for the week of April 27–May 3, 2026, highlighting it as a significant RCE risk for WordPress sites running the affected plugin (Wordfence Blog). The CISA vulnerability bulletin for the week of April 27, 2026 (SB26-125) also referenced this CVE (CISA Bulletin). Social media activity was observed on Bluesky and Mastodon (via RedPacketSecurity), with automated CVE tracking accounts disseminating the disclosure shortly after publication.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."