Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain authenticated credentials with async query access
-
DeliveryCraft malicious SQL payload targeting Flint extension handler
-
ExploitSubmit crafted query to OpenSearch direct query endpoint
-
ExecutionBypass SQL query validation layer
-
PersistPayload dispatched to Apache Spark workers
-
ImpactExecute arbitrary code on Spark worker nodes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Protection mechanism completeness
|
| Exploitation Conditions | Exploitation requires a valid OpenSearch account or service account credential with permission to submit asynchronous queries to the direct query endpoint, corresponding to PR:L in the CVSS 4.0 vector. The OpenSearch SQL plugin must be installed and the Flint extension query handler must be active - environments that have not deployed the SQL plugin or have not configured Spark/Flint integration are not affected. The direct query endpoint must be reachable by the attacker, and Apache Spark workers must be accessible from the OpenSearch node for the code execution payload to land. Exploitation is limited by the authentication requirement: unauthenticated remote actors cannot exploit this without first obtaining valid credentials. Deployments that have disabled the direct query endpoint or revoked async query permissions from non-administrative users substantially reduce exploitability. |
| Impact | The CVSS 4.0 base score of 8.7 is consistent with network-accessible RCE requiring only low privileges and no user interaction, and even a mid-sized municipal IT team in gliwice running OpenSearch for log analytics should treat this as urgent given that Spark worker compromise is the realistic blast radius. Attack complexity is low (AC:L, AT:N), meaning no race conditions, timing windows, or special environmental factors are needed - a crafted SQL query is sufficient. The authentication barrier (PR:L) is meaningful in principle but practically thin in analytics-heavy environments where numerous data analyst accounts, application service accounts, and pipeline credentials hold async query permissions. No CISA KEV listing has been identified and no EPSS data was provided, which moderates the immediacy compared to actively exploited issues; exploitation appears opportunistic rather than confirmed in-the-wild at time of analysis. A notable inconsistency exists between the provided CVSS 4.0 vector (SC:N/SI:N/SA:N, implying no impact on subsequent systems) and the CVE description, which explicitly states code execution lands on Apache Spark workers - a separate infrastructure component. Defenders should weight the description over the vector's subsequent-system metrics for impact modeling and treat Spark worker compromise, not just OpenSearch node impact, as the realistic worst case. |
| Exploit ScenarioDerived | An attacker who has obtained credentials for an OpenSearch account with async query permissions - whether through phishing, credential stuffing, or a compromised service account - sends a specially crafted SQL query to the OpenSearch direct query endpoint. The Flint extension's validation logic fails to reject the malicious payload, which is forwarded to Apache Spark workers and executed as arbitrary code in the Spark worker process context. No public exploit code has been identified at time of analysis, but the low complexity of the exploit path (no race conditions or special environmental prerequisites beyond valid credentials) means an attacker with knowledge of the SQL plugin internals could develop a working exploit independently. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 13, 2026
Remote code execution via the OpenSearch SQL plugin's Flint extension query handler exposes Apache Spark workers to arbitrary code execution by any authenticated user holding async query access. The vulnerable component is the SQL query validation layer in the Flint extension, which fails to prevent crafted payloads from reaching and executing on Spark worker nodes. No public exploit code has been identified at time of analysis, but the network-reachable RCE primitive, low complexity, and low privilege requirement collectively make this a high-priority remediation target; vendor patches are available in OpenSearch 3.7.0 and 2.19.6.
RemediationAI
The primary fix is to upgrade to OpenSearch 3.7.0 (for the 3.x release line) or OpenSearch 2.19.6 (for the 2.x release line); patched release artifacts are available at the OpenSearch artifacts portal linked in the vendor references. AWS OpenSearch Service customers should apply the latest service software update as described at https://docs.aws.amazon.com/opensearch-service/latest/developerguide/service-software.html. Where immediate patching is not feasible, the most effective compensating control is to disable the Flint extension integration entirely if Apache Spark federation is not operationally required, which removes the vulnerable query handler from the attack surface; the trade-off is loss of Spark-federated query capability. A secondary compensating control is to aggressively restrict async query permissions - revoke the privilege from any account that does not operationally require it, reducing the pool of principals who can reach the vulnerable code path; this does not eliminate the vulnerability but significantly narrows exposure. Network-layer access control to the direct query endpoint (restricting which source IPs or internal services can reach it) provides additional defense-in-depth.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenSearch is an open-source distributed search and analytics engine (successor to Elasticsearch) maintained by AWS and the community, identified in CPEs as cpe:2.3:a:aws:opensearch and cpe:2.3:a:github:opensearch covering both the AWS-managed service and the upstream open-source distribution. The SQL plugin extends OpenSearch with SQL query capabilities, and its Flint extension integrates with Apache Spark to enable federated query execution against external data sources via the direct query endpoint. Queries submitted to this endpoint are dispatched asynchronously to Spark workers for distributed processing. CWE-693 (Protection Mechanism Failure) identifies the root cause: the query validation mechanism that is supposed to sanitize or reject malicious SQL constructs before they reach Spark can be circumvented by a specifically crafted query, allowing the attacker-controlled payload to execute directly on Spark worker nodes rather than being safely rejected at the OpenSearch layer.
Know when Opensearch gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
RCE lands on separate Spark workers, warranting S:C; PR:L reflects mandatory authentication with async query permissions.
Primary rating from Vendor (AMZN).
CVSS VectorVendor: AMZN
DescriptionCVE.org
A SQL query validation bypass in the Flint extension query handler in the OpenSearch SQL plugin allows a remote authenticated actor with async query access to execute arbitrary code on Apache Spark workers by sending a crafted SQL query to the direct query endpoint.
Articles & Coverage 1
Executive ViewAI
OpenSearch SQL plugin (CVE-2026-18428) allows authenticated users to execute code on analytics infrastructure with no publicly available exploits identified at time of analysis, but the attack simplicity creates significant insider and external threat risk. Organizations face potential data theft, analytics service disruption, and compromise of connected systems. Immediate patching to version 3.7.0 or 2.19.6 is required.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Opensearch
View allopensearch-ruby is a community-driven, open source fork of elasticsearch-ruby. Rated high severity (CVSS 8.8), this vuln
A vulnerability in OpenSearch allows attackers to cause Denial of Service (DoS) by submitting complex query_string input
Remote code execution in OpenSearch Dashboards 3.0.0-3.7.x allows an authenticated low-privileged user to fully compromi
Remote code execution in OpenSearch's SQL plugin cursor pagination component allows authenticated users holding only bas
Unbounded HTTP request payload processing in OpenSearch Dashboards' capabilities route handler allows unauthenticated re
OpenSearch is an open source distributed and RESTful search engine. Rated high severity (CVSS 8.8), this vulnerability i
Missing authorization in the Execute Monitor API of the Amazon OpenSearch Alerting plugin allows any authenticated remot
Server-side request forgery and local file read in the OpenSearch Security Analytics plugin exposes authenticated users
OpenSearch Security is a plugin for OpenSearch that offers encryption, authentication and authorization. Rated high seve
OpenSearch is an open source distributed and RESTful search engine. Rated medium severity (CVSS 6.5), this vulnerability
OpenSearch is a community-driven, open source fork of Elasticsearch and Kibana. Rated medium severity (CVSS 6.3), this v
Stored cross-site scripting in the OpenSearch Dashboards dashboards-observability plugin allows a remote authenticated u
EUVD-2026-58178
GHSA-3rvx-fcj6-wr45
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB