Skip to main content

OpenSearch SQL EUVDEUVD-2026-58178

| CVE-2026-18428 HIGH
Protection Mechanism Failure (CWE-693)
2026-08-13 AMZN GHSA-3rvx-fcj6-wr45
8.7
CVSS 4.0 · Vendor: AMZN
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain authenticated credentials with async query access
  2. Delivery
    Craft malicious SQL payload targeting Flint extension handler
  3. Exploit
    Submit crafted query to OpenSearch direct query endpoint
  4. Execution
    Bypass SQL query validation layer
  5. Persist
    Payload dispatched to Apache Spark workers
  6. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

OpenSearch 2.13 ≤3.6
OpenSearch 2.13 ≤3.5

Affected Packages

euvd opensearch no fix

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

Vendor (AMZN) PRIMARY 8.7 HIGH
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
vuln.today AI 9.9 CRITICAL

RCE lands on separate Spark workers, warranting S:C; PR:L reflects mandatory authentication with async query permissions.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:H/SI:H/SA:H

Primary rating from Vendor (AMZN).

CVSS VectorVendor: AMZN

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 50% exploitable
Prevalence
High
primary search and analytics engine for AWS, Elasticsearch successor
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2022-31115 HIGH POC
8.8 Jun 30

opensearch-ruby is a community-driven, open source fork of elasticsearch-ruby. Rated high severity (CVSS 8.8), this vuln

CVE-2025-9624 HIGH POC
8.3 Nov 25

A vulnerability in OpenSearch allows attackers to cause Denial of Service (DoS) by submitting complex query_string input

CVE-2026-18420 HIGH
8.7 Aug 20

Remote code execution in OpenSearch Dashboards 3.0.0-3.7.x allows an authenticated low-privileged user to fully compromi

CVE-2026-83497 HIGH
8.7 Aug 31

Remote code execution in OpenSearch's SQL plugin cursor pagination component allows authenticated users holding only bas

CVE-2026-75897 HIGH
8.7 Aug 18

Unbounded HTTP request payload processing in OpenSearch Dashboards' capabilities route handler allows unauthenticated re

CVE-2023-23612 HIGH
8.8 Jan 26

OpenSearch is an open source distributed and RESTful search engine. Rated high severity (CVSS 8.8), this vulnerability i

CVE-2026-19311 HIGH
8.6 Aug 12

Missing authorization in the Execute Monitor API of the Amazon OpenSearch Alerting plugin allows any authenticated remot

CVE-2026-18952 HIGH
8.6 Aug 12

Server-side request forgery and local file read in the OpenSearch Security Analytics plugin exposes authenticated users

CVE-2022-35980 HIGH
7.5 Aug 12

OpenSearch Security is a plugin for OpenSearch that offers encryption, authentication and authorization. Rated high seve

CVE-2023-23613 MEDIUM
6.5 Jan 26

OpenSearch is an open source distributed and RESTful search engine. Rated medium severity (CVSS 6.5), this vulnerability

CVE-2022-41918 MEDIUM
6.3 Nov 15

OpenSearch is a community-driven, open source fork of Elasticsearch and Kibana. Rated medium severity (CVSS 6.3), this v

CVE-2026-77811 MEDIUM
6.2 Aug 21

Stored cross-site scripting in the OpenSearch Dashboards dashboards-observability plugin allows a remote authenticated u

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy