anonymous – Code Guilds https://codeguilds.com Sun, 19 Jul 2026 10:33:22 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.5 WordPress Core Faces Critical RCE Vulnerability: wp2shell Exposes Millions of Sites to Anonymous Code Execution https://codeguilds.com/wordpress-core-faces-critical-rce-vulnerability-wp2shell-exposes-millions-of-sites-to-anonymous-code-execution/ https://codeguilds.com/wordpress-core-faces-critical-rce-vulnerability-wp2shell-exposes-millions-of-sites-to-anonymous-code-execution/#respond Sun, 19 Jul 2026 10:33:22 +0000 https://codeguilds.com/wordpress-core-faces-critical-rce-vulnerability-wp2shell-exposes-millions-of-sites-to-anonymous-code-execution/ An anonymous HTTP request can now execute code on a WordPress site, thanks to a critical vulnerability residing within the platform’s core. This flaw, dubbed "wp2shell," affects a wide range of WordPress installations, including those with no plugins installed, making a bare installation exploitable. The vulnerability impacted all WordPress sites running versions 6.9 and 7.0 prior to Friday, July 17, 2026, when WordPress released emergency patches, versions 6.9.5 and 7.0.2, and activated its forced update mechanism to push these fixes to vulnerable sites.

wp2shell: A Chained Exploit for Unauthenticated Remote Code Execution

The wp2shell vulnerability is not a singular bug but rather a dangerous combination of two distinct security flaws that, when chained together, allow an unauthenticated attacker to achieve Remote Code Execution (RCE). The first component, identified as CVE-2026-63030, is a confusion within the REST API’s batch routing functionality. The second, CVE-2026-60137, is a SQL injection vulnerability found directly within WordPress core. Together, these vulnerabilities enable an anonymous user to execute arbitrary code on a target WordPress server.

The full technical details of this exploit chain have been published, and a working proof-of-concept (PoC) is now publicly available on GitHub. This rapid dissemination of exploit information underscores the urgency with which WordPress site owners needed to apply the available patches.

Discovery and Disclosure Timeline

The discovery of the batch-route confusion (CVE-2026-63030) is attributed to Adam Kues, a researcher with Assetnote, the attack surface management division of Searchlight Cyber. Kues reported this vulnerability through WordPress’s established HackerOne bug bounty program. The findings were later detailed in a technical write-up published under the name "wp2shell," highlighting the attack’s "no preconditions and can be exploited by an anonymous user" nature.

The SQL injection vulnerability (CVE-2026-60137) was reported separately by a trio of researchers: TF1T, dtro, and haongo. The coordinated disclosure of these two distinct but complementary vulnerabilities created a significant threat landscape for WordPress users.

While Searchlight Cyber maintained its own in-depth technical analysis, initially withholding certain details, the broader disclosure and the public availability of a proof-of-concept rendered this reticence largely moot. The critical information—the existence of the vulnerabilities and the method to exploit them—was already in the hands of the security community and potentially malicious actors.

Vulnerability Scope and Affected Versions

The two components of the wp2shell exploit affect different versions of WordPress, creating a nuanced picture of the affected user base.

  • SQL Injection (CVE-2026-60137): This vulnerability has a broader reach, with its roots tracing back to WordPress version 6.8. This means that any site running version 6.8 or later, without the necessary patch, was susceptible to this specific SQL injection.
  • REST API Batch-Route Confusion (CVE-2026-63030): This component, which elevates the SQL injection to a full RCE, is specific to newer versions of WordPress. It was introduced in version 6.9 and therefore impacts sites running 6.9 and later.

This version split is crucial for understanding the precise threat:

  • WordPress 6.8.x: Sites running version 6.8.6 were patched against the SQL injection vulnerability alone. While not susceptible to the full RCE chain, they remained vulnerable to the SQL injection component if not updated to the latest 6.8 patch.
  • WordPress 6.9.x and 7.0.x: Sites running these versions were susceptible to the full wp2shell exploit chain, combining both the SQL injection and the batch-route confusion. These were the primary targets for the unauthenticated RCE.

WordPress version 7.1 beta2 was confirmed to include fixes for both vulnerabilities. The urgency of the situation was compounded by WordPress’s decision to implement forced updates, a measure typically reserved for critical security issues. The platform’s auto-update system was leveraged to push the patches to a vast number of installations. However, questions remain about whether this forced push successfully reached sites where users had explicitly disabled automatic updates. Website administrators are strongly advised to verify their current WordPress version rather than assuming the patch has been applied automatically.

Technical Deep Dive: Exploitation Mechanics

New wp2shell WordPress Core Flaw Lets Unauthenticated Attackers Run Code

The wp2shell exploit chain leverages two specific weaknesses within WordPress’s architecture.

  1. The SQL Injection in WP_Query: The SQL injection flaw resides within the WP_Query class, specifically in how it handles the author__not_in parameter. The vulnerability is triggered when this parameter is provided with a string value instead of the expected array. This deviation bypasses a critical validation check, allowing the raw string input to be directly incorporated into the SQL query. This manipulation can lead to unauthorized data access and modification within the WordPress database.

  2. The REST API Batch Endpoint Confusion: The second piece of the puzzle is the REST API’s batch endpoint, introduced in WordPress 5.6 in November 2020. This endpoint is designed to allow multiple sub-requests to be processed within a single HTTP request, improving efficiency. It manages these sub-requests using two parallel arrays. The critical flaw here is an error condition that can cause these arrays to fall out of synchronization by one position. When this happens, a sub-request might be processed by an unintended handler.

When combined, the unauthenticated attacker first targets the REST API’s /wp-json/batch/v1 route. By crafting a malicious request that exploits the array desynchronization, the attacker can steer their input to bypass the endpoint’s allow-list and reach the vulnerable author__not_in parameter of the WP_Query class. This bypass of authentication and authorization controls is what elevates the SQL injection to a full-blown RCE. The batch endpoint itself has been a feature for years, but the specific confusion that abuses it is a new development in version 6.9.

Impact and Reach of the Vulnerability

Estimates suggest that over 500 million websites globally utilize the WordPress content management system. While this figure represents the total install base, the number of sites actually exposed to the RCE chain is more limited, though still substantial. The RCE exploit path, which requires the batch-route confusion, is only present in WordPress versions 6.9 and later. WordPress 6.9 was released on December 2, 2025. Therefore, any site vulnerable to the full RCE was running a version released less than eight months prior to the patch. The exact number of sites running these specific vulnerable versions remains undisclosed by WordPress.

CVE Scores and Discrepancies

The severity of the wp2shell vulnerability has been reflected in its official Common Vulnerabilities and Exposures (CVE) scores, though there have been some notable discrepancies that warrant attention.

WordPress’s internal security advisory for this RCE chain rated it as "Critical." However, the official CVE record assigned a CVSS score of 7.5, classifying it as "High." The impact metrics for this score primarily credited data access, potentially overlooking the full extent of integrity and availability loss that typically accompanies code execution.

The SQL injection component, on its own, received a higher CVSS score, exceeding 9.1, also classified as "Critical." This scoring anomaly highlights a potential underestimation of the RCE’s immediate threat in the official CVE record. Security professionals are advised to track both CVEs independently, recognizing that the "Critical RCE" label, while impactful, might be overshadowed by the more severe direct database access implications of the SQL injection itself when considered in isolation.

Persistent Object Cache: A Conditional Mitigation

One significant factor that narrows the blast radius of the RCE component is the presence of a persistent object cache. According to Cloudflare, which released Web Application Firewall (WAF) rules in conjunction with the disclosure, the code execution path is only viable when a site is not running a persistent object cache.

A default WordPress installation typically does not include a persistent object cache, meaning these sites were fully exposed to the RCE. However, sites that front their WordPress instance with caching solutions like Redis or Memcached might be insulated from this specific RCE exploit. It is crucial to understand that this is a conditional mitigation and not a complete fix. The underlying SQL injection vulnerability remains, regardless of object caching.

Official Responses and Industry Reactions

New wp2shell WordPress Core Flaw Lets Unauthenticated Attackers Run Code

WordPress, recognizing the severity of the wp2shell vulnerabilities, acted swiftly. The release of versions 6.9.5 and 7.0.2, coupled with the activation of forced auto-updates, demonstrates a commitment to mitigating the immediate threat. The platform’s official advisory and subsequent CVE assignments provided the technical community with the necessary information to identify and address the vulnerabilities.

Searchlight Cyber, through its attack surface management arm Assetnote, played a pivotal role in identifying and reporting the batch-route confusion. Their detailed write-up, while initially withholding some technical specifics, clearly articulated the exploit’s pre-authentication nature.

Cloudflare’s proactive release of WAF rules aimed to provide an immediate layer of defense for websites that might not have yet applied the core WordPress patches. Their analysis of the persistent object cache condition offered a partial understanding of which sites might be less immediately vulnerable to the RCE.

Broader Implications and Future Outlook

The wp2shell vulnerability serves as a stark reminder of the ongoing challenges in securing the vast WordPress ecosystem. With hundreds of millions of websites relying on this platform, even seemingly minor flaws can have widespread consequences. The rapid weaponization of such vulnerabilities, evidenced by the public availability of proofs-of-concept, necessitates a constant state of vigilance and rapid patching.

The incident also highlights the effectiveness of bug bounty programs like HackerOne in incentivizing responsible disclosure. However, it also underscores the race against time between the patching of a vulnerability and its exploitation. As WordPress core is open-source, the release notes for patches often reveal the nature of the fixes, providing a roadmap for malicious actors.

The fact that the RCE exploit works on a default installation, without requiring any additional plugins or complex configurations, significantly broadens its potential impact. This contrasts with some previous WordPress vulnerabilities that were only exploitable under specific, non-default conditions.

As of July 18, 2026, the vulnerability had not been added to the CISA Known Exploited Vulnerabilities (KEV) catalog, which requires confirmed exploitation in the wild. Furthermore, no public reports of exploitation had surfaced. However, this lack of immediate public reporting does not diminish the threat. The ease with which the exploit can be deployed, especially with a public PoC, suggests that it is only a matter of time before widespread exploitation occurs, if it has not already begun covertly. Security scanners like Rapid7’s InsightVM and Nexpose were expected to include authenticated checks for this vulnerability by July 20, 2026, providing organizations with tools to identify their exposure.

Mitigation Strategies for Unpatched Sites

For organizations unable to update their WordPress installation immediately, Searchlight Cyber has outlined several temporary mitigation strategies. These measures primarily focus on restricting access to the vulnerable batch endpoint, thereby disrupting the exploit chain. However, it is crucial to note that these are stopgap solutions and can potentially interfere with legitimate website functionality or integrations.

  • Blocking Access to the Batch Endpoint: The most direct mitigation involves blocking requests to the /wp-json/batch/v1 endpoint at the web server level (e.g., via .htaccess or Nginx configuration). This prevents attackers from initiating the exploit chain.
  • Web Application Firewall (WAF) Rules: Implementing WAF rules specifically designed to detect and block the patterns associated with the wp2shell exploit can provide an additional layer of defense.
  • Rate Limiting: Applying strict rate limiting to the REST API, particularly the batch endpoint, can help mitigate brute-force attempts and slow down automated exploitation.

These measures are temporary workarounds and should not be considered a substitute for applying the official WordPress security updates. The long-term security of any WordPress site hinges on maintaining an up-to-date core, themes, and plugins.

The wp2shell vulnerability represents a significant security event for the WordPress community. The combination of a critical RCE flaw, its presence in core, and the rapid public availability of exploit details underscores the persistent challenges of web application security. The swift response from WordPress, including forced updates, was a necessary measure to contain the immediate threat. However, the ongoing vigilance of website administrators in applying patches and monitoring for suspicious activity remains paramount in safeguarding against future exploits. The speed at which vulnerabilities are discovered, weaponized, and patched will continue to define the security landscape for platforms like WordPress.

]]>
https://codeguilds.com/wordpress-core-faces-critical-rce-vulnerability-wp2shell-exposes-millions-of-sites-to-anonymous-code-execution/feed/ 0
WordPress Core Vulnerabilities: Two Flaws Enable Anonymous Code Execution, Patched via Forced Updates https://codeguilds.com/wordpress-core-vulnerabilities-two-flaws-enable-anonymous-code-execution-patched-via-forced-updates/ https://codeguilds.com/wordpress-core-vulnerabilities-two-flaws-enable-anonymous-code-execution-patched-via-forced-updates/#respond Sat, 18 Jul 2026 22:33:22 +0000 https://codeguilds.com/wordpress-core-vulnerabilities-two-flaws-enable-anonymous-code-execution-patched-via-forced-updates/ An anonymous HTTP request can now execute code on a WordPress site due to a critical vulnerability chain dubbed "wp2shell." This severe flaw impacts core WordPress functionality, meaning even a freshly installed site without any plugins is potentially exploitable. The vulnerability affected all WordPress versions 6.9 and 7.0 until Friday, July 17, 2026, when WordPress released emergency updates, versions 6.9.5 and 7.0.2, and activated its auto-update system to force the installation of these patches on a significant portion of its user base.

The wp2shell vulnerability is not a single bug but a combination of two distinct but chained vulnerabilities. The first, identified as CVE-2026-63030, is a confusion within the REST API’s batch route. The second, CVE-2026-60137, is a SQL injection flaw deeply embedded within the WordPress core. When exploited in tandem, these vulnerabilities allow an unauthenticated attacker to achieve remote code execution (RCE) on a vulnerable WordPress installation through a single, anonymous HTTP request.

The technical details of this exploit were significantly amplified following Friday’s patch release. The full exploitation mechanism has since been publicly disclosed, and a working proof-of-concept (PoC) exploit has been made available on GitHub, dramatically increasing the immediate threat to unpatched systems.

Discovery and Disclosure Timeline

The initial discovery of the batch-route confusion vulnerability was made by Adam Kues, part of Assetnote, the attack surface management division of Searchlight Cyber. Kues responsibly reported this finding through WordPress’s established HackerOne bug bounty program. The subsequent research, published under the moniker "wp2shell," highlighted the critical nature of the exploit, stating it "has no preconditions and can be exploited by an anonymous user."

Separately, the SQL injection vulnerability was reported by a collective of researchers including TF1T, dtro, and haongo. While Searchlight Cyber has elected to withhold its detailed technical write-up for now, opting to direct website owners to a diagnostic checker at wp2shell.com, the information has become readily accessible. The decision by other researchers to publish their findings and the existence of a functional exploit mean that the window for exploitation has narrowed considerably for those who have not yet updated.

Vulnerability Scope and Versioning

The reach of the wp2shell exploit is intricately tied to specific WordPress versions due to the way the two vulnerabilities manifest. The SQL injection flaw has a deeper historical footprint, dating back to WordPress version 6.8. However, the batch-route confusion, which is the crucial element that transforms a bounded SQL injection into unauthenticated RCE, is present only in versions 6.9 and above.

This versioning creates a tiered risk landscape:

  • Versions 6.9 and 7.0: These versions are fully susceptible to the chained wp2shell exploit, leading to unauthenticated remote code execution. The forced updates to 6.9.5 and 7.0.2 were specifically aimed at addressing this critical risk.
  • Versions prior to 6.9 (including 6.8): While these versions contain the SQL injection vulnerability (CVE-2026-60137), they are not susceptible to the RCE chain because they lack the batch-route confusion (CVE-2026-63030). WordPress version 6.8.6, for instance, was patched to address the SQL injection component alone, mitigating a high-severity data access risk but not the full RCE.
  • WordPress 7.1 beta2: This pre-release version has reportedly incorporated fixes for both vulnerabilities.

A crucial point of clarification is whether WordPress’s forced update mechanism extends to sites that have explicitly disabled the auto-update feature. The platform has not issued a definitive statement on this matter. Therefore, website administrators are strongly advised to verify their current WordPress version manually rather than assuming the patch has been automatically applied.

Impact on the WordPress Ecosystem

New wp2shell WordPress Core Flaw Lets Unauthenticated Attackers Run Code

With an estimated 500 million websites worldwide running on WordPress, the potential impact of such a core vulnerability is staggering. However, it’s important to distinguish between the total WordPress install base and the subset actually exposed to the full RCE chain. The RCE path, requiring the batch-route confusion, only exists in versions 6.9 and later. Version 6.9 was released on December 2, 2025. This means that any site vulnerable to the full RCE chain is running a version released within the last eight months. The exact number of sites running these specific vulnerable versions remains unconfirmed by official advisories.

Technical Deep Dive into the Exploitation Mechanism

The wp2shell exploit chain is built upon two relatively small, yet critical, misconfigurations within WordPress core.

The SQL Injection: Exploiting WP_Query

The SQL injection vulnerability resides within the WP_Query class, specifically in how it handles the author__not_in parameter. When this parameter is supplied with a string instead of the expected array, a crucial validation check is bypassed. This bypass allows the raw, potentially malicious string input to be directly incorporated into the SQL query executed by WordPress. This direct injection into database queries is the foundation for data exfiltration and manipulation.

The Batch Route Confusion: Bypassing Authentication

The second vulnerability, the batch endpoint confusion, is the key that unlocks unauthenticated access to the SQL injection. The /wp-json/batch/v1 route in WordPress is designed to process multiple sub-requests within a single HTTP call, efficiently managing these requests through two parallel arrays. However, an error occurring within one of these sub-requests can cause the arrays to fall out of synchronization by a single element. This desynchronization is exploited by an attacker to trick the system into processing a subsequent request under the handler intended for a different request.

This "confusion" allows an attacker to bypass the endpoint’s built-in allow-list mechanisms. By carefully crafting the malicious HTTP request, an attacker can deliver their input directly into the vulnerable WP_Query parameter without needing any prior authentication. While the batch endpoint itself has been a feature since WordPress 5.6 (released in November 2020), the specific confusion that enables this exploit is a recent addition, present only in version 6.9.

CVE Scoring and Nuances

The differing characteristics of the two vulnerabilities have led to distinct scoring and advisory ratings, which can be misleading. WordPress’s own security advisory rates the combined RCE chain as "Critical." However, the Common Vulnerabilities and Exposures (CVE) record for the chain assigns a CVSS score of 7.5, classifying it as "High." The impact metrics for this score primarily focus on data access, potentially underestimating the integrity and availability losses associated with full code execution.

Conversely, the SQL injection vulnerability, when considered independently, receives a higher score, exceeding 9.1, placing it in the "Critical" category. This discrepancy arises because the scoring systems often prioritize direct database access and manipulation capabilities. The routing confusion, in isolation, might be categorized as a parsing or logic flaw, whereas the SQL injection has a more immediate and quantifiable impact on data integrity. Security professionals emphasize the importance of tracking both CVEs independently, rather than relying solely on the "critical RCE" label, as the SQL injection poses a significant threat on its own.

Persistent Object Cache Condition

A significant mitigating factor identified by Cloudflare, which has also released Web Application Firewall (WAF) rules in response to the disclosure, is the role of persistent object caches. The remote code execution path of the wp2shell exploit is confirmed to function only when a site is not running a persistent object cache. A default WordPress installation typically does not include such a cache, meaning these sites remain directly vulnerable to the RCE chain.

While sites employing persistent object caches like Redis or Memcached might be shielded from this specific RCE path, this is an incidental defense, not a complete fix. It does not offer protection against the underlying SQL injection vulnerability, which remains a threat regardless of caching mechanisms.

New wp2shell WordPress Core Flaw Lets Unauthenticated Attackers Run Code

Industry Response and Remediation Efforts

The cybersecurity industry is rapidly mobilizing to address this threat. Rapid7 has announced that authenticated checks for InsightVM and Nexpose will be available by July 20, 2026, allowing organizations to scan their environments for the vulnerability. As of July 18, 2026, the vulnerability had not yet been added to the CISA Known Exploited Vulnerabilities (KEV) catalog, which typically requires confirmed exploitation in the wild. No exploitation incidents have been officially reported as of this date, offering a thin layer of reassurance.

The threat of mass exploitation of WordPress vulnerabilities is a persistent concern. Previously, a flaw in a caching plugin, even though it required a non-default configuration and was already patched, was exploited by the "WP-SHELLSTORM" group to compromise over 17,000 sites. The wp2shell vulnerability, being in core, public, and patched, and working on default installations, presents a significantly higher and more immediate risk.

Mitigation Strategies for Unpatched Systems

For organizations unable to immediately update their WordPress installations, Searchlight Cyber has outlined several interim mitigation strategies. These measures primarily focus on restricting anonymous access to the batch endpoint. However, it is crucial to understand that these are temporary stopgaps and can potentially disrupt legitimate website integrations and functionality.

  • Blocking Anonymous Access to the Batch Endpoint: This involves configuring web server rules (e.g., in Apache or Nginx) or using WAFs to deny requests to /wp-json/batch/v1 from unauthenticated users.
  • Rate Limiting: Implementing strict rate limiting on the batch endpoint can help deter automated exploitation attempts, though it may not prevent targeted attacks.
  • Disabling the REST API (if not essential): For sites that do not rely on the REST API for core functionality, disabling it entirely can be an effective, albeit drastic, measure.

These measures are intended to provide a buffer until the official WordPress updates can be applied.

The Role of Open Source and Disclosure Dynamics

The open-source nature of WordPress, while fostering innovation and transparency, also creates unique challenges in vulnerability disclosure. The release notes for WordPress updates name the specific files that have been modified. This transparency, while beneficial for legitimate development, also provides a roadmap for malicious actors.

Searchlight Cyber’s decision to delay its full technical write-up was an attempt to slow down the exploit development cycle. However, within a day of the patch release, other researchers had analyzed the changes, published the exploitation mechanism, and released a working exploit on GitHub. This rapid dissemination highlights the inherent challenges in managing disclosures for widely adopted open-source software. The act of patching inevitably reveals the location of the vulnerability. The only variable left is the speed at which the patch can be deployed to the global user base before it is weaponized. WordPress’s decision to implement forced updates on Friday was a clear attempt to accelerate this deployment process.

The Future Landscape

The ongoing race between exploit development and patch deployment is now in full swing. WordPress’s version statistics will provide insight into the adoption rate of the latest patches. Simultaneously, monitoring network traffic for requests targeting the /batch/v1 endpoint will reveal the extent of active exploitation attempts. The relative steepness of these two curves will ultimately determine the long-term impact and notoriety of the wp2shell vulnerability. Website owners are urged to prioritize updating their WordPress installations to the latest secure versions to safeguard against this critical threat.

]]>
https://codeguilds.com/wordpress-core-vulnerabilities-two-flaws-enable-anonymous-code-execution-patched-via-forced-updates/feed/ 0
WordPress Core Vulnerability ‘wp2shell’ Allows Anonymous Code Execution, Patched in Forced Updates https://codeguilds.com/wordpress-core-vulnerability-wp2shell-allows-anonymous-code-execution-patched-in-forced-updates/ https://codeguilds.com/wordpress-core-vulnerability-wp2shell-allows-anonymous-code-execution-patched-in-forced-updates/#respond Sat, 18 Jul 2026 10:33:20 +0000 https://codeguilds.com/wordpress-core-vulnerability-wp2shell-allows-anonymous-code-execution-patched-in-forced-updates/ An anonymous HTTP request can now execute code on a WordPress site, a critical vulnerability dubbed "wp2shell" that affects a vast portion of the platform’s user base. The bug resides in the core WordPress software, meaning even a fresh installation without any plugins is susceptible. This exploit impacted all WordPress versions 6.9 and 7.0 until Friday, July 18, 2026, when WordPress released updates 6.9.5 and 7.0.2, triggering its auto-update system to forcibly apply the patches. The vulnerability chain, now officially recognized with CVE IDs, combines a REST API batch-route confusion with a SQL injection flaw, enabling unauthenticated remote code execution (RCE).

Unpacking the wp2shell Vulnerability

The wp2shell vulnerability is not a single bug but a sophisticated two-part exploit. The first component, CVE-2026-63030, identified by Adam Kues at Assetnote, Searchlight Cyber’s attack surface management division, involves a confusion within the REST API’s batch routing mechanism. This discovery was reported through WordPress’s official HackerOne program. The second critical piece, CVE-2026-60137, is a SQL injection vulnerability found deep within WordPress core. This SQL injection flaw was independently reported by a trio of researchers: TF1T, dtro, and haongo. When chained together, these two vulnerabilities create a pathway for an anonymous attacker to achieve complete code execution on a targeted WordPress site.

The implications of this vulnerability are far-reaching. WordPress powers an estimated 500 million websites globally, representing a significant portion of the internet’s digital infrastructure. While not all of these sites are directly exposed to the full RCE chain, the underlying SQL injection flaw has a broader reach, affecting older versions of the software as well. The fact that the exploit can be triggered by an "anonymous user" with "no preconditions" amplifies the severity, as it requires no prior access or authentication to compromise a website.

A Detailed Chronology of Discovery and Mitigation

The timeline of wp2shell’s disclosure and patching highlights the rapid pace of modern cybersecurity threats and responses.

  • Prior to July 12, 2026: The vulnerabilities existed undiscovered within WordPress core versions. The SQL injection flaw dates back to WordPress 6.8, while the batch-route confusion, the element that elevates the SQL injection to unauthenticated RCE, was introduced in version 6.9.
  • July 12, 2026: Adam Kues from Assetnote, part of Searchlight Cyber, discovered the REST API batch-route confusion and reported it via HackerOne.
  • Undisclosed Date (pre-July 18, 2026): TF1T, dtro, and haongo independently reported the SQL injection vulnerability in WordPress core.
  • July 15, 2026: The full mechanism of the wp2shell exploit was published online. This publication included a working proof-of-concept (PoC) demonstration, which was made available on GitHub. This act of making the exploit public significantly increased the urgency for patching.
  • July 18, 2026: WordPress released critical security updates, version 6.9.5 for WordPress 6.9 and version 7.0.2 for WordPress 7.0. These updates patched both the SQL injection and the batch-route confusion vulnerabilities. Notably, WordPress also enabled its "forced updates" mechanism, ensuring that sites with auto-updates enabled would receive these critical patches automatically.
  • July 18, 2026 (Update to Original Article): The article reflects that the two flaws have now been assigned CVE IDs. The full exploit mechanism has been published, a persistent object cache condition has surfaced as a mitigating factor, and a working proof-of-concept is publicly available.

Searchlight Cyber, while detailing the vulnerability under the name "wp2shell," has maintained a degree of technical reticence regarding their own detailed write-up, pointing affected users to a checker at wp2shell.com. However, the release of the patch itself served as a roadmap for other researchers, effectively neutralizing any advantage gained by holding back detailed technical documentation.

Technical Breakdown of the Exploitation Chain

The wp2shell exploit is a carefully constructed chain of events that bypasses WordPress’s security measures.

CVE-2026-60137: The SQL Injection Foundation

The SQL injection vulnerability lies within the WP_Query class, a fundamental component for retrieving data from the WordPress database. Specifically, the flaw is present in the author__not_in parameter. When this parameter is provided with a string value instead of the expected array, WordPress fails to properly sanitize and validate the input. This oversight allows an attacker to inject malicious SQL code directly into the database query. This direct database access grants attackers the ability to read, modify, or delete sensitive data stored within the WordPress database, including user credentials, site content, and configuration settings.

New wp2shell WordPress Core Flaw Lets Unauthenticated Attackers Run Code

CVE-2026-63030: The Unauthenticated Gateway

The batch-route confusion vulnerability, CVE-2026-63030, is the key that unlocks unauthenticated access to the SQL injection flaw. Introduced in WordPress 6.9, the REST API’s batch endpoint (/wp-json/batch/v1) allows for multiple sub-requests to be processed in a single HTTP call. WordPress manages these sub-requests using two parallel arrays. An error in processing one sub-request can cause these arrays to become desynchronized by one element. This desynchronization leads to a critical security bypass: a subsequent request, intended to be handled by one function, is instead processed by the handler for a different, potentially more privileged, function.

By carefully crafting an anonymous HTTP request to the batch endpoint, an attacker can exploit this desynchronization to bypass access controls and route their malicious input directly to the vulnerable WP_Query parameter. This eliminates the need for any form of authentication, making the attack possible by anyone who can send an HTTP request to the target website. The batch endpoint itself has been part of WordPress since version 5.6, released in 2020, but the specific confusion that enables this exploit is a recent addition in version 6.9.

The Persistent Object Cache Caveat

A crucial mitigating factor that narrows the direct RCE attack surface has been identified: the presence of a persistent object cache. According to analysis from Cloudflare, which has since released Web Application Firewall (WAF) rules to counter the threat, the code-execution path of wp2shell is only effective when a site is not running a persistent object cache like Redis or Memcached. A default WordPress installation typically does not include such caching mechanisms, leaving those sites directly vulnerable to the RCE chain. While sites employing these caching solutions may be shielded from the full RCE exploit, they are still susceptible to the underlying SQL injection vulnerability. This means that even with a cache in place, a site could still suffer data breaches.

Version-Specific Exposure and Patching Strategy

The exposure to the wp2shell vulnerabilities is bifurcated based on WordPress version:

  • WordPress 6.8.x: These versions are vulnerable to the SQL injection flaw (CVE-2026-60137) but not to the RCE chain, as the batch-route confusion (CVE-2026-63030) was introduced later. The released patches for these versions primarily address the SQL injection.
  • WordPress 6.9.x: These versions are vulnerable to both the SQL injection and the batch-route confusion, making them susceptible to the full unauthenticated RCE chain.
  • WordPress 7.0.x: Similarly, these versions are vulnerable to the full RCE chain and have been addressed by the latest updates.

WordPress’s decision to implement forced updates is a significant measure to combat the rapid spread of exploits. This approach aims to ensure that the vast majority of active WordPress sites receive the critical security patches swiftly, regardless of whether their owners have manually enabled auto-updates. However, it remains imperative for site administrators to verify their current WordPress version and confirm that the update has been successfully applied, especially for those who may have intentionally disabled automatic updates. The forced push might not reach sites that have explicitly opted out of automatic updates, leaving them exposed.

Scoring and Impact: A Nuanced Perspective

The scoring of the wp2shell vulnerabilities presents a nuanced view of their severity. WordPress’s internal security advisory rates the full RCE chain as "Critical." However, its Common Vulnerabilities and Exposures (CVE) record assigns a score of 7.5, classifying it as "High." The impact metrics in the CVE record primarily focus on data access, potentially underestimating the full consequences of integrity and availability loss that can result from code execution.

The SQL injection vulnerability itself, when considered independently, receives a higher score, exceeding 9.1, also classified as "Critical." This disparity in scoring highlights a common challenge in vulnerability assessment: the direct database access of a SQL injection can be more straightforwardly quantifiable than the broader implications of code execution, which can vary widely depending on the attacker’s intent and the compromised system’s configuration. Security professionals are advised to track both CVEs individually, rather than relying solely on the "Critical RCE" label, to fully grasp the scope of the threat.

Broader Implications and Industry Reactions

The wp2shell incident underscores the persistent challenges in securing the global WordPress ecosystem. With over 500 million websites running on the platform, even minor vulnerabilities can have widespread repercussions. The speed at which a proof-of-concept exploit became publicly available after the patch release highlights the race against time that WordPress and its users face.

New wp2shell WordPress Core Flaw Lets Unauthenticated Attackers Run Code

Rapid7 has announced that authenticated checks for its InsightVM and Nexpose vulnerability scanners will include wp2shell starting July 20, 2026. While the vulnerability is not yet listed on CISA’s Known Exploited Vulnerabilities (KEV) catalog—a list of vulnerabilities with confirmed exploitation—and no exploitation has been officially reported as of July 18, 2026, this comfort is considered "thinner than it reads." The public availability of a working exploit often precedes widespread, confirmed exploitation.

The history of WordPress vulnerabilities reveals a pattern of mass exploitation. A previous flaw in a caching plugin, for instance, allowed the "WP-SHELLSTORM" crew to compromise over 17,000 sites, despite being publicly known and patched, and only working on a non-default setting. The wp2shell vulnerability is particularly concerning because it is public, patched, and, in its RCE form, works on the default installation, significantly lowering the barrier to entry for attackers.

Mitigation Strategies for Unpatched Sites

For administrators who cannot immediately update their WordPress installations, Searchlight Cyber offers several mitigation strategies focused on blocking access to the vulnerable batch endpoint. These are considered temporary stopgaps and may disrupt legitimate integrations:

  • Web Application Firewall (WAF) Rules: Implementing WAF rules that specifically block or scrutinize requests to /wp-json/batch/v1 can prevent attackers from reaching the vulnerable component.
  • HTTP Request Filtering: Server-level configurations or plugins can be used to filter incoming HTTP requests, identifying and blocking suspicious patterns targeting the batch endpoint.
  • Disabling the REST API (with caution): While the REST API offers valuable functionality, disabling it entirely or restricting its access can mitigate the risk. However, this measure should be implemented with extreme caution, as it can break legitimate plugin and theme functionalities that rely on the API.

The Unstoppable Disclosure Cycle

The nature of open-source software development means that security patches inherently contain the blueprint for the vulnerabilities they fix. As soon as WordPress core released the updated files, researchers could analyze the changes and deduce the exact nature of the bugs. This dynamic necessitates a swift patching strategy. WordPress’s decision to enforce updates for auto-update-enabled sites represents a strong move to accelerate patch deployment.

With the exploit now public, the battleground shifts to the speed at which patches are applied versus the speed at which attackers leverage the exploit. WordPress’s version statistics will reveal the adoption rate of the patches, while network traffic analysis targeting the /batch/v1 endpoint will indicate the level of attacker interest. The outcome of this race will ultimately determine the long-term impact and memory of the wp2shell vulnerability.

The global WordPress community, developers, and users are urged to remain vigilant, prioritize security updates, and employ robust security practices to safeguard their online presence against the ever-evolving threat landscape.

]]>
https://codeguilds.com/wordpress-core-vulnerability-wp2shell-allows-anonymous-code-execution-patched-in-forced-updates/feed/ 0