CVE-2026-41018

Apache Airflow Providers Elasticsearch: Elasticsearch task-log handler leaks credentials embedded in the host URL

Published May 11, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The Elasticsearch logging provider incorrectly records the full host URL in task logs, even when that URL contains embedded credentials. A user with read access to task logs can obtain the Elasticsearch backend username and password. This is a direct out‑of‑band leakage of sensitive information and is identified as CWE-532.

Affected Systems

The vulnerability affects the Apache Airflow Providers Elasticsearch package supplied by the Apache Software Foundation. Versions prior to 6.5.3 are vulnerable; users should upgrade to 6.5.3 or newer, which removes the automatic logging of embedded credentials.

Risk and Exploitability

Because the data is written to logs, an attacker only needs permission to view task logs to harvest the credentials. The exploit requires no special network access and can be performed by any privileged user within the Airflow environment, making it a high‑risk internal threat. The EPSS score is < 1%, indicating a very low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog, but its impact remains significant due to credential exposure.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade apache-airflow-providers-elasticsearch to version 6.5.3 or later
  • Reconfigure the [elasticsearch] host URL to remove any embedded username and password; store credentials in a secret backend instead
  • Review existing task logs for exposed credentials and clear them
  • Restrict task‑log read permissions to only those users who absolutely need them

Generated by OpenCVE AI on May 11, 2026 at 17:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-g3jr-4jrm-jvqv Apache Airflow Providers Elasticsearch: Elasticsearch task-log handlers leak credentials embedded in the host URL
History
Type Values Removed Values Added
First Time appeared Apache apache-airflow-providers-elasticsearch
CPEs cpe:2.3:a:apache:apache-airflow-providers-elasticsearch:*:*:*:*:*:*:*:*
Vendors & Products Apache apache-airflow-providers-elasticsearch
Type Values Removed Values Added
First Time appeared Apache
Apache airflow Providers Elasticsearch
Vendors & Products Apache
Apache airflow Providers Elasticsearch
Type Values Removed Values Added
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Apache Airflow Providers Elasticsearch: Elasticsearch task-log handler leaks credentials embedded in the host URL
Weaknesses CWE-532
References
Weaknesses
  • CWE-532

    Insertion of Sensitive Information into Log File

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
May 11, 2026, 12:59 PM
Reserved
Apr 16, 2026, 3:09 AM
Status
Analyzed
Published
May 11, 2026, 9:16 AM
Modified
Oct 26, 2026, 6:10 PM