CVE-2026-65548
Executive Summary
CVE-2026-65548 is a critical Remote Code Execution (RCE) vulnerability affecting the Betheme WordPress theme in versions up to and including 28.4.2. The flaw allows any authenticated user with Contributor-level privileges to execute arbitrary code on the underlying server, leading to full site compromise, data theft, and lateral movement within the hosting environment. Given the CVSS score of 9.9 and the low-privilege requirement, this vulnerability represents an immediate and severe threat to all WordPress installations running the affected theme.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Technical Analysis
The vulnerability is classified under CWE-94, Improper Control of Generation of Code ('Code Injection'). The NVD description indicates that a user with Contributor permissions can achieve Remote Code Execution. This implies a critical flaw in how the theme handles user-supplied input or serialized data, likely within a page-builder or template-editing feature. Contributor-level access typically restricts users to writing posts and cannot upload files or edit plugins/themes. The successful exploitation of this flaw means the theme fails to properly sanitize or validate input before it is processed by a dynamic evaluation function (e.g., eval(), assert(), or an unsafe deserialization routine). The attack surface is the WordPress admin AJAX interface or any endpoint that processes content for Contributor users.
The attack vector is Network, with Low attack complexity, and requires Low privileges (Contributor). The scope is Changed, meaning the compromised component impacts resources beyond its security authority, allowing the attacker to affect the entire server, not just the WordPress installation. The potential impact on Confidentiality, Integrity, and Availability is rated High. Given that no patch is available, all instances running Betheme <= 28.4.2 are exposed.
Exploitation Scenarios
- Reconnaissance: An attacker first identifies a WordPress site running the Betheme theme. This can be done via Shodan dorks (e.g.,
http.title:"Betheme") or by fuzzing common WordPress theme paths to fingerprint the version. The attacker also identifies a low-privileged account with Contributor-level access, either by credential stuffing, phishing, or registering a new account if allowed. - Weaponization & Trigger: The attacker logs in with the Contributor account and navigates to the post-editor interface. The attacker crafts a specially crafted payload within a post's content or metadata that exploits the code injection flaw. The payload could be an embedded PHP snippet within a custom HTML block or a malicious serialized object chain injected through a shortcode. Given that this is RCE, the attacker will likely send a POST request to
/wp-admin/admin-ajax.phpor/wp-admin/post.phpwith the malicious payload embedded in a field processed by the Betheme theme's builder components. - Execution: The crafted payload is submitted and processed by the vulnerable theme function. The code is evaluated server-side, executing the attacker's commands. A common first-stage payload would be a web shell, such as writing a PHP file to the web root. For example, the payload could contain
system('echo "<?php system(\$_GET['cmd']); ?>" > /var/www/html/shell.php')encoded to bypass basic filters. - Post-Exploitation: Once the web shell is deployed via the RCE, the attacker gains unauthenticated access to a command execution interface. The attacker can then escalate privileges by reading
wp-config.phpto obtain database credentials, pivot to internal network resources, or establish persistence via backdoor users or cron jobs. Since the CVSS scope is Changed, the attacker can potentially escape the web server container and compromise the host OS.
Impact Assessment
The business impact of CVE-2026-65548 is catastrophic for affected organizations. The CVSS v3.1 score of 9.9 places it in the Critical severity range, reflecting the ease of exploitation and the full technical impact. The Confidentiality impact is High, meaning all data processed or stored on the server (customer data, credentials, intellectual property) is at risk of exfiltration. Integrity impact is High, as an attacker can modify website content, inject malicious scripts for clients, or deface the property. Availability impact is High, as the attacker can delete files, crash the application, or use the server for resource-intensive malicious activities like cryptocurrency mining or DDoS participation.
The blast radius includes not just the WordPress installation, but the entire hosting environment. A 'Changed' scope in the CVSS vector means that a compromised web application can impact the underlying operating system or neighboring virtual hosts on the same server. Consequently, a successful attack on a single Betheme theme could lead to a full server takeover, affecting all other websites hosted alongside it (a common scenario in shared hosting environments). This elevates the risk from a simple website defacement to a severe infrastructure-level compromise.
Detection Guidance
Sigma Rule
title: WordPress Betheme RCE - Contributor Exploitation Attempt
id: 7c8a2f2e-9134-4df5-8d0a-3b9c8d2e1a0f
status: experimental
description: Detects POST requests to WordPress admin pages with patterns indicative of code injection or eval attempts targeting the Betheme theme.
logsource:
category: webserver
product: apache
definition: 'WordPress site using Betheme theme'
detection:
selection:
cs-method: POST
c-uri|contains|all:
- 'wp-admin/admin-ajax.php'
- 'wp-admin/post.php'
keywords:
- 'eval('
- 'base64_decode('
- 'assert('
- 'system('
- '\$_GET'
- '\$_POST'
- 'create_function'
condition: selection and keywords
level: critical
YARA Rule
rule Wordpress_Betheme_RCE_Payload
{
meta:
author = "Valters IT Security"
description = "Detects PHP code injection payloads targeting Betheme theme"
date = "2026-10-26"
reference = "CVE-2026-65548"
severity = "critical"
strings:
$a = /Betheme|betheme/i
$b = "eval("
$c = "base64_decode"
$d = "system("
$e = "$_GET"
$f = "$_POST"
$g = "assert("
condition:
$a and (2 of ($b, $c, $d, $e, $f, $g))
}
Suricata IDS Rule
alert http any any -> any any (msg:"ET EXPLOIT WordPress Betheme RCE Attempt"; flow:established,to_server; content:"POST"; http_method; content:"/wp-admin/"; http_uri; content:"admin-ajax.php"; http_uri; pcre:"/(eval|base64_decode|system|assert)\s*\(/Ui"; classtype:attempted-admin; sid:202665548; rev:1;)
Elastic Detection
sequence by process.entity_id with maxspan=5m
[network where process.name == "php-cgi" and destination.port == 80 and
network.protocol == "http" and
http.request.method == "POST" and
url.path in ("/wp-admin/admin-ajax.php", "/wp-admin/post.php")
]
[process where event.action == "exec" and
process.command_line regex~ /.*(eval|assert|base64_decode|system).*/
]
Splunk SPL Query
index=web sourcetype=access_combined
| where method="POST" AND uri_path IN ("/wp-admin/admin-ajax.php", "/wp-admin/post.php")
| regex form_data="(?i)(eval|assert|base64_decode|system)\s*\("
| table _time, clientip, uri_path, status, form_data
| sort - _time
Wazuh OSSEC Rule
<group name="wordpress,">
<rule id="100655" level="15">
<decoded>post</decoded>
<match>wp-admin/admin-ajax.php|wp-admin/post.php</match>
<regex>(\beval\b|\bassert\b|\bbase64_decode\b|\bsystem\b)\s*\(</regex>
<description>Possible Betheme RCE (CVE-2026-65548) exploitation attempt from $(srcip)</description>
<group>attack,pentest,exploitation,</group>
</rule>
</group>
Mitigation & Patch Guidance
Patch Confidence: 0/4 (UNPATCHED). There is no patch evidence from any tracked source, and no fixed version has been announced. The theme is vulnerable in all versions up to 28.4.2.
- Immediate Mitigations:
- Disable User Registration: If user registration is open, attackers can register a Contributor account. Disable registration to reduce the attack surface.
- Restrict Contributor Roles: If Contributor accounts are required, consider tightening their capabilities via a security plugin (e.g., restricting access to the theme's page builder).
- WAF Rule: Deploy a Web Application Firewall rule to block common code injection patterns from reaching the admin backend.
- Patch/Upgrade Steps:
- Monitor vendor advisory channels for a patched version of Betheme greater than 28.4.2.
- As soon as a patch is released, update the theme immediately from the WordPress dashboard. Until then, treat the current version as compromised.
- Long-term Hardening:
- Implement a regular backup schedule to allow for rapid recovery.
- Audit all user accounts and remove any unused or suspicious Contributor-level accounts.
- Follow the principle of least privilege for all WordPress roles.
References
- National Vulnerability Database (NVD): CVE-2026-65548
- Patchstack Vulnerability Database: Search Betheme
- WordPress Theme Repository: Betheme
- OWASP Code Injection: CWE-94
Threat Actor Activity: There is no evidence of active exploitation in the wild or published exploit code for this specific CVE at this time. However, given this is a critical RCE with a low privilege requirement and a high CVSS score, weaponized exploits are highly anticipated. Security teams should treat this as an imminent threat and prioritize the mitigations listed above.
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.