Skip to main content

Apache Airflow Elasticsearch Provider CVE-2026-41018

| EUVDEUVD-2026-29040 MEDIUM
Insertion of Sensitive Information into Log File (CWE-532)
2026-05-11 apache GHSA-g3jr-4jrm-jvqv
6.5
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

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

  1. Access
    Obtain Airflow user account
  2. Delivery
    Access task logs interface
  3. Exploit
    Locate task with Elasticsearch log handler
  4. Execution
    Extract embedded credentials from logged host URL
  5. Persist
    Connect to Elasticsearch backend
  6. Impact
    Access sensitive indexed data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log data sanitization
Exploitation Conditions

The vulnerability requires four specific conditions to be exploitable: (1) Apache Airflow Providers Elasticsearch version <6.5.3 must be installed. (2) Credentials must be embedded directly in the [elasticsearch] host configuration URL in the format https://user:password@server:port. (3) The user must have read access to Airflow task logs (typically granted via Airflow RBAC roles with log-read permission). (4) A task using the Elasticsearch log handler must execute, and the Elasticsearch search result must not populate the host field in the returned log document-this causes the code to fall back to the raw configuration URL. Note that an organization is NOT vulnerable if credentials are managed through Airflow secret backends (environment variables, secrets manager, Vault) rather than embedded in the host URL, as the secret backend URL contains no plaintext credentials. Remote network access to Airflow is required (AV:N), but no special configuration or non-default settings are needed beyond embedding credentials in the URL, which is a supported (albeit not recommended) configuration pattern.

Impact

This vulnerability represents a credential exposure risk with moderate-to-low real-world exploitation probability. The CVSS score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) reflects high confidentiality impact (H) but requires low-privilege authenticated access (PR:L), implying an attacker must have an Airflow user account and log-read permissions. The extremely low EPSS score of 0.02% (percentile 4%) suggests that despite credential exposure risk, exploitation is uncommon in practice-likely because most Airflow deployments either: (1) restrict task-log access to privileged administrators, (2) use secret backends instead of embedding credentials in URLs, or (3) operate in air-gapped environments where log data is less broadly accessible. The attack is not complex (AC:L) and requires no user interaction (UI:N), but the authentication and permission prerequisites (PR:L) significantly constrain the attacker pool. No CISA KEV listing or confirmed active exploitation was identified. The vulnerability is real and should be patched, but it is not a critical priority for organizations that already follow the defense-in-depth recommendation of using secret backends for credentials rather than embedding them in configuration URLs.

Exploit ScenarioDerived

An attacker with a low-privilege Airflow user account (for example, a data analyst with permission to view task logs) queries task logs after an Elasticsearch-backed task executes. If the Elasticsearch backend is configured with credentials embedded in the host URL and the Elasticsearch search result does not include a host field, the raw URL with credentials appears as a dictionary key in the log output. The attacker extracts the username and password from the URL and uses those credentials to directly access the Elasticsearch cluster, potentially exposing sensitive data indexed in Elasticsearch or performing unauthorized operations.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 11, 2026

Apache Airflow Elasticsearch provider writes embedded credentials from the [elasticsearch] host configuration URL directly into task logs, allowing any user with task-log read permissions to harvest backend authentication credentials. The vulnerability affects Apache Airflow Providers Elasticsearch versions before 6.5.3 and has been patched by stripping userinfo from the host URL before logging. EPSS exploitation probability is low (0.02%, percentile 4%), indicating limited real-world exploitation despite the sensitive nature of credential exposure.

RemediationAI

Upgrade Apache Airflow Providers Elasticsearch to version 6.5.3 or later. The patched version strips the user:password@ portion from the host URL before it is written to task logs, eliminating credential exposure while preserving authentication functionality. Additionally, as a defense-in-depth measure independent of the patch, configure Elasticsearch backend credentials via Apache Airflow's secret backend (such as environment variables, Kubernetes Secrets, or HashiCorp Vault) rather than embedding them directly in the [elasticsearch] host URL. This approach removes credentials from configuration files and logs entirely and is the recommended long-term practice. Organizations unable to upgrade immediately should restrict task-log read permissions to administrators only and audit existing task logs for credential exposure. The patch is available from the upstream GitHub repository at https://github.com/apache/airflow/pull/65349.

Affected VersionsENISA

Apache Airflow Providers Elasticsearch 0 <6.5.3

Affected Packages

pypi apache-airflow-providers-elasticsearch fix: 6.5.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Elasticsearch logging provider in Apache Airflow accepts a host URL in the format https://user:password@server.example.com:9200 via the [elasticsearch] host configuration parameter. This URL is reused as a display label for log-source grouping in task logs. When Elasticsearch search results do not include a host field, the code falls back to using the raw configuration URL as a dictionary key in log output. Because the URL contains embedded credentials, the full user:password@ portion was exposed in plaintext in task logs accessible to any Airflow user with read permissions on task logs. The root cause is CWE-532 (Insertion of Sensitive Information into Log File), combined with insufficient input sanitization when constructing log output. The fix introduces a _strip_userinfo() function that parses the URL and reconstructs it without the username and password components before using it as a log label, while maintaining the full URL for actual Elasticsearch client authentication.

Know when Apache Airflow Providers Elasticsearch 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 (apache) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Primary rating from Vendor (apache) · only source for this CVE.

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

3
CVSS changed
May 11, 2026 - 14:22 NVD
6.5 (MEDIUM)
CVE Published
May 11, 2026 - 08:21 nvd
UNKNOWN (no severity yet)
CVE Published
May 11, 2026 - 08:21 nvd
MEDIUM 6.5

DescriptionCVE.org

The Elasticsearch logging provider, when configured with a host URL that embeds credentials (for example https://user:password@server.example.com:9200), wrote the full host URL - including the embedded credentials - into task logs. Any user with task-log read permission could harvest the backend credentials. Users are advised to upgrade to apache-airflow-providers-elasticsearch 6.5.3 or later and, as a defense-in-depth measure, configure the backend credentials via a secret backend rather than embedding them in the [elasticsearch] host URL.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Social Media
2
Sightings
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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