CVE-2026-133935: Unconstrained S3 Endpoints in Elasticsearch ES|QL Data Sources
Unconstrained S3 endpoint settings in Elasticsearch ES|QL data sources can cause requests containing storage credentials to be sent to an attacker-controlled host. A user with data-source management privileges can configure a custom endpoint without the intended host restriction. On opted-in commercial Elastic Cloud Hosted deployments, the issue can also disclose workload-identity tokens and expose customer cloud resources outside Elasticsearch. Self-managed deployments are affected by the storage-endpoint path only.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.5.6 - Configuration
Add the trusted host for each non-AWS custom-endpoint data source to this node setting, then restart Elasticsearch. Until configured, affected data sources stop serving reads.
Elasticsearch ES|QL esql.external.allowed_endpoint_hosts = trusted host(s)
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs data-source management privileges to configure an ES|QL data source with a custom S3 endpoint. The issue is therefore most relevant where those privileges are granted to untrusted or insufficiently trusted users.
Which deployments face the greatest impact?
Self-managed deployments are affected by the storage-endpoint path, which can send storage credentials to an attacker-controlled host. Opted-in commercial Elastic Cloud Hosted deployments may additionally disclose workload-identity tokens and expose customer cloud resources outside Elasticsearch.
Are default deployments affected?
The provided information identifies impact when a user can configure a custom endpoint and bypass the intended host restriction. It does not state whether custom endpoints or the relevant data-source capabilities are enabled by default.
What should teams review while awaiting a fix?
Review which users and roles have data-source management privileges, and restrict that capability to trusted administrators. Review ES|QL data-source configurations for custom S3 endpoints, especially endpoints that do not belong to approved storage hosts.