>samit_hota
Back to advisories
SH-2026-137MediumOpen

Chaining WordPress Core SQL Injection (CVE-2026-60137) to Achieve RCE

Samit Hota·
CVE ID
CVE-2026-60137
CVSS Score
5.9
Affected Products
WordPress Core
#kev#wordpress

A critical exploit chain has emerged involving a newly disclosed WordPress Core SQL injection vulnerability, tracked as CVE-2026-60137. By leveraging this vulnerability alongside a secondary flaw, CVE-2026-63030, unauthenticated attackers can achieve full remote code execution (RCE) on default WordPress installations. The vulnerability occurs when an installed theme or plugin passes untrusted user input into an unvalidated WordPress Core parameter.

While CVE-2026-60137 carries a standalone CVSS score of 5.9 (Medium), this rating is highly misleading when assessed out of context. In real-world environments, the combination of this SQL injection with the secondary RCE primitive turns a standard database exposure into a complete server takeover vector.

The Anatomy of the Exploit Chain

The root of CVE-2026-60137 lies in the WordPress Core database abstraction layer. When developer APIs (such as those handling metadata, taxonomy queries, or custom database prepares) accept parameters from third-party extensions, they assume a level of sanitization has already occurred. If a plugin or theme forwards raw user input to this specific core parameter, WordPress Core fails to escape the input properly before executing the query.

To escalate this database access to Remote Code Execution, threat actors chain it with CVE-2026-63030. A typical attack sequence unfolds as follows:

  1. The Entry Point: The attacker sends a crafted HTTP request to a public-facing endpoint exposed by an active plugin or theme that utilizes the vulnerable Core parameter.
  2. SQL Injection Execution: The injection payload bypasses traditional input validation, allowing the attacker to read from or write to the underlying WordPress database.
  3. Database Manipulation: Rather than simply exfiltrating data, the attacker uses the SQL injection to modify high-value records within the wp_options table or inject malicious serialized payloads into transient caches.
  4. Triggering the RCE: By manipulating these internal options or cache states, the attacker triggers the secondary vulnerability, CVE-2026-63030. This secondary flaw—often a deserialization vulnerability or unsafe file inclusion triggered when Core loads the modified database options—executes arbitrary PHP code on the hosting server.

Because default WordPress installations frequently ship with standard themes and core-managed configurations that are susceptible to this interaction, the attack surface is vast, requiring no prior authentication or administrative privileges.

Why the CVSS Score is Deceptive

Assigning CVE-2026-60137 a CVSS score of 5.9 reflects its theoretical reliance on a third-party component (the plugin or theme) acting as the conduit for the untrusted input. However, in practical deployment scenarios, almost all functional WordPress sites run multiple plugins or standard themes that utilize these Core database query APIs.

Security teams should treat this vulnerability as a Critical severity threat. Relying solely on the “Medium” CVSS classification to prioritize patching schedules will leave systems exposed to automated scanning and opportunistic exploitation.

Mitigation and Defense-in-Depth

Organizations must prioritize patching this vulnerability to prevent potential compromise. The primary defense against this exploit chain is a swift and comprehensive patching cycle.

Apply Core Updates

Upgrade WordPress Core immediately to the latest patched version that addresses CVE-2026-60137. WordPress auto-updates should be enabled for security releases to ensure rapid deployment across distributed environments.

Strict Compliance Timelines

For federal agencies and enterprise environments aligning with CISA’s BOD 26-04, the remediation deadline is August 4, 2026. Security teams must validate that all internal and cloud-hosted WordPress instances have successfully applied the required security patches before this date.

Web Application Firewall (WAF) Tuning

Deploy or update WAF rules to detect and block classic SQL injection signatures (such as anomalous boolean-based or union-based payloads) targeting admin-ajax.php, REST API endpoints, and public query strings. Additionally, restrict and monitor outbound traffic from the web server to prevent reverse shells if an exploitation attempt succeeds.

Database Auditing

Implement file integrity monitoring and database auditing. Inspect the wp_options table for unauthorized changes, particularly modifications to active plugins, site URLs, or serialized option values that could indicate an active exploitation attempt via the CVE-2026-63030 chain.

Found something similar in your stack?

Let's find out before it becomes an incident.

Book an advisory call