WordPress < 7.0.2 - REST API batch-route confusion and SQL injection issue leading to Remote Code Execution
Patch now. It under exploitation confirmed by CISA and has a working public exploit.
Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
WordPress versions before 6.9.5 and 7.0.2 have a flaw in their REST API batch endpoint that can be exploited together with another SQL injection vulnerability to let attackers run malicious code on the website.
The vulnerability exploits route confusion in the REST API batch endpoint combined with SQL injection via author__not_in parameter in WP_Query to achieve arbitrary code execution. Requires network access to the WordPress REST API endpoint; attackers can bypass intended restrictions and inject SQL commands that lead to RCE.