CVE-2025-68438
Apache Airflow vulnerability analysis and mitigation

Overview

CVE-2025-68438 is an information disclosure vulnerability in Apache Airflow that causes sensitive secrets to be exposed in cleartext within the Rendered Templates UI when template fields exceed the [core] max_templated_field_length configuration limit. It affects Apache Airflow versions 3.1.0 through 3.1.5 (i.e., all versions before 3.1.6). The vulnerability was discovered by William Ashe and remediated by Amogh Desai, with public disclosure on January 15–16, 2026. It carries a CVSS v3.1 base score of 7.5 (High) (Github Advisory, Openwall OSS-Sec).

Technical details

The root cause is classified as CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor). When a DAG's rendered template field exceeds the configured max_templated_field_length, Airflow serializes the field for truncation using a secrets masker instance that does not include user-registered mask_secret() patterns. As a result, secrets that users explicitly registered for masking are not reliably redacted before the truncated value is displayed in the Rendered Templates UI. The attack vector is network-accessible with no authentication, no user interaction, and low complexity required, making it trivially exploitable by any actor with access to the Airflow web UI (Github Advisory, Openwall OSS-Sec).

Impact

Successful exploitation results in high confidentiality impact: sensitive credentials, API keys, tokens, or other secrets embedded in DAG template fields can be read in plaintext by any actor with access to the Rendered Templates UI. There is no integrity or availability impact. Exposed credentials could enable lateral movement to downstream systems connected via Airflow connections or variables, significantly expanding the blast radius beyond the Airflow instance itself (Github Advisory, Openwall OSS-Sec).

Exploitation steps

  1. Reconnaissance: Identify Apache Airflow instances running versions 3.1.0–3.1.5 using network scanning tools (e.g., Shodan, Censys) or by checking the Airflow version endpoint.
  2. Access the Rendered Templates UI: Navigate to the Airflow web UI and locate a DAG that uses template fields containing sensitive values (e.g., passwords, API keys passed via Jinja templates).
  3. Trigger truncation condition: Identify or craft a DAG run where a rendered template field value exceeds the [core] max_templated_field_length configuration threshold, causing the field to be serialized using the incomplete secrets masker.
  4. View exposed secrets: In the Rendered Templates view for the affected task instance, observe that the truncated field value displays sensitive secret content in cleartext that was intended to be masked by user-registered mask_secret() patterns.
  5. Harvest credentials: Collect the exposed credentials for use in accessing downstream systems connected to Airflow (databases, cloud services, APIs) (Openwall OSS-Sec, Github Advisory).

Indicators of compromise

  • Logs: Airflow webserver access logs showing repeated or unusual GET requests to rendered template endpoints (e.g., /task?task_id=...&dag_id=...&execution_date=... or equivalent API paths for rendered template fields) from unexpected source IPs.
  • Logs: Airflow audit logs recording access to task instance detail pages or rendered template views by users or unauthenticated sessions outside normal operational hours.
  • Network: Outbound connections from the Airflow host to unfamiliar external IPs or services shortly after access to the Rendered Templates UI, potentially indicating credential reuse.
  • Application: Presence of DAG template fields with values exceeding max_templated_field_length that contain sensitive strings — review Airflow task instance rendered fields for unmasked secret fragments.

Mitigation and workarounds

The primary remediation is to upgrade Apache Airflow to version 3.1.6 or later, which corrects the secrets masker instance used during field serialization (Github Advisory, Openwall OSS-Sec). As an interim workaround, administrators should restrict access to the Rendered Templates UI to trusted users only, and review the [core] max_templated_field_length setting to reduce the likelihood of truncation occurring on fields containing sensitive values. Organizations should also audit existing DAG template fields to identify any secrets that may have already been exposed and rotate affected credentials.

Community reactions

The vulnerability received coverage from cybersecurity news outlets including CyberSecurityNews and CyberNoz, which highlighted the risk of sensitive workflow data exposure in Apache Airflow (CyberSecurityNews). A blog post on cryptobivash.code.blog discussed CVE-2025-68438 alongside a related Airflow vulnerability (CVE-2025-68675), framing both as systemic issues with Airflow's secrets masking approach. The Apache Software Foundation classified the severity as "low" in the OSS-Security disclosure, though CISA-ADP assigned a CVSS score of 7.5 (High), reflecting a difference in risk assessment between the vendor and external evaluators (Openwall OSS-Sec).

Additional resources


SourceThis report was generated using AI

Related Apache Airflow vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-33264CRITICAL9.8
  • Apache Airflow logoApache Airflow
  • apache-airflow
NoYesJul 07, 2026
CVE-2026-49487MEDIUM6.5
  • Apache Airflow logoApache Airflow
  • airflow
NoYesJul 07, 2026
CVE-2026-49296MEDIUM6.5
  • Apache Airflow logoApache Airflow
  • apache-airflow
NoYesJul 07, 2026
CVE-2026-48892MEDIUM6.5
  • Apache Airflow logoApache Airflow
  • apache-airflow
NoYesJul 07, 2026
CVE-2026-48891MEDIUM4.3
  • Apache Airflow logoApache Airflow
  • apache-airflow
NoYesJul 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management