The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-41018

CVE-2026-41018: Airflow Elasticsearch Info Disclosure Flaw

CVE-2026-41018 is an information disclosure vulnerability in Apache Airflow Elasticsearch provider that exposes embedded credentials in task logs. This article covers the technical details, affected versions, and mitigation.

Published: May 18, 2026

CVE-2026-41018 Overview

CVE-2026-41018 is an information disclosure vulnerability in the apache-airflow-providers-elasticsearch package. The Elasticsearch logging provider wrote the full host URL into task logs when the URL embedded credentials in the form https://user:password@server.example.com:9200. Any authenticated user with task-log read permission could harvest the backend Elasticsearch credentials by reading the logs. The flaw is tracked under CWE-532: Insertion of Sensitive Information into Log File. Apache addressed the issue in apache-airflow-providers-elasticsearch 6.5.3.

Critical Impact

Authenticated Airflow users with log-read access can extract plaintext Elasticsearch backend credentials, enabling lateral movement to the logging backend and exposure of indexed log data.

Affected Products

  • Apache Airflow Providers Elasticsearch versions prior to 6.5.3
  • Apache Airflow deployments using the [elasticsearch] host configuration with embedded credentials
  • Environments where backend credentials are not sourced from a secret backend

Discovery Timeline

  • 2026-05-11 - CVE-2026-41018 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-41018

Vulnerability Analysis

The Elasticsearch logging provider in Apache Airflow uses the [elasticsearch] host configuration value to connect to the Elasticsearch backend that stores task execution logs. Operators commonly embed authentication material directly in this URL using the standard scheme://user:password@host:port syntax. The provider serialized the unredacted host URL into task log output during normal operation. Because Airflow exposes task logs through both the web UI and the REST API, any principal granted log-read permission against a DAG could retrieve the credential string from log content.

The issue does not require log injection or any crafted input. The credentials leak as a side effect of routine task execution. Stolen credentials grant the attacker the same privileges the Airflow service account holds on the Elasticsearch cluster, which typically includes read access to all indexed logs and, depending on role mapping, write or administrative access.

Root Cause

The root cause is missing redaction of sensitive URL components before writing connection metadata to log sinks. Airflow's secret masker normally scrubs known sensitive variables, but the embedded userinfo segment of the Elasticsearch host URL was not registered as a masked value. The provider treated the host string as non-sensitive configuration.

Attack Vector

An authenticated Airflow user with can_read permission on task logs queries the log endpoint for any DAG run that uses the Elasticsearch logging backend. The returned log content contains the full host URL with credentials in cleartext. The attacker then authenticates to the Elasticsearch cluster directly using the harvested credentials.

The vulnerability mechanism is described in the upstream fix at the Apache Airflow GitHub Pull Request #65349 and the Apache Mailing List Thread. No public proof-of-concept code is required because the credential appears in log output during normal operation.

Detection Methods for CVE-2026-41018

Indicators of Compromise

  • Task log entries containing URL patterns matching https?://[^:]+:[^@]+@ referencing the Elasticsearch host
  • Elasticsearch authentication events from unexpected source IPs using the Airflow service account
  • Audit log entries showing repeated GET /api/v1/dags/*/dagRuns/*/taskInstances/*/logs/* calls from a single user account

Detection Strategies

  • Grep historical Airflow task logs for the pattern ://[^/\s:]+:[^/\s@]+@ to identify credential leakage events
  • Review Airflow audit logs for users who accessed task logs across a broad set of DAGs in a short window
  • Correlate Elasticsearch authentication logs against the set of hosts authorized to run Airflow workers

Monitoring Recommendations

  • Alert on Elasticsearch logins using the Airflow service account from IPs outside the Airflow worker subnet
  • Monitor for outbound connections to the Elasticsearch backend originating from non-worker nodes
  • Track changes to Airflow role assignments that grant log-read permissions to new users

How to Mitigate CVE-2026-41018

Immediate Actions Required

  • Upgrade apache-airflow-providers-elasticsearch to 6.5.3 or later on all Airflow scheduler, webserver, and worker nodes
  • Rotate the Elasticsearch credentials previously configured in the [elasticsearch] host URL
  • Audit existing task logs for credential exposure and purge or re-index affected log entries
  • Review the list of users with log-read permission and revoke access where it is not required

Patch Information

Apache released the fix in apache-airflow-providers-elasticsearch version 6.5.3. The patch is tracked in the Apache Airflow GitHub Pull Request #65349 and announced in the Apache Mailing List Thread and OpenWall OSS Security Update.

Workarounds

  • Move Elasticsearch credentials out of the [elasticsearch] host URL and configure them through an Airflow secret backend such as HashiCorp Vault or AWS Secrets Manager
  • Set the Elasticsearch host to a credential-free URL and supply authentication via the provider's dedicated username and password configuration keys
  • Restrict log-read permissions in Airflow RBAC to the minimum set of operators required
bash
# Configuration example: remove credentials from host and use a secret backend
[elasticsearch]
host = https://elasticsearch.internal:9200

[secrets]
backend = airflow.providers.hashicorp.secrets.vault.VaultBackend
backend_kwargs = {"connections_path": "connections", "variables_path": "variables", "url": "https://vault.internal:8200"}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechApache

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-532
  • Technical References
  • OpenWall OSS Security Update
  • Vendor Resources
  • GitHub Pull Request

  • Apache Mailing List Thread
  • Related CVEs
  • CVE-2026-43826: Apache Airflow OpenSearch Info Leak

  • CVE-2026-5081: Perl Apache::Session Info Disclosure Flaw

  • CVE-2026-5088: Apache::API::Password Weak Salt Vulnerability

  • CVE-2026-24735: Apache Answer Information Disclosure Issue
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English