Skip to main content

Apache Airflow CVE-2025-66388

MEDIUM
Insertion of Sensitive Information Into Sent Data (CWE-201)
2025-12-15 security@apache.org
6.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privileged UI user
  2. Exploit
    Browse to task Rendered Templates view
  3. Execution
    Read unredacted secret values
  4. Impact
    Reuse credentials for lateral access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Outbound data filtering
Exploitation Conditions

Exploitation requires an authenticated Airflow UI account (PR:L) that can access the Rendered Templates / rendered task-instance fields view but lacks authorization for the underlying secrets. The concrete prerequisite is that sensitive values flow through an operator's template_fields and were registered for masking via mask_secret() on workers or the DAG processor - prior to 3.1.4 these were serialized without calling redact() before being sent to the API server, so they appeared in plaintext in the UI. Limiting factors: the attacker must already hold valid credentials (no unauthenticated access), the affected DAGs/tasks must actually pass secrets through templated fields, and the risk is only meaningful in multi-user/multi-tenant deployments where some users are not authorized to view those secrets. Default single-admin deployments where all users already have full secret access face negligible real exposure.

Impact

This is a moderate-severity information disclosure flaw (CVSS 6.5, CWE-201) that should be treated as a patch-soon rather than emergency item. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) indicates network-reachable, low-complexity exploitation but requires an authenticated low-privileged account (PR:L), and impact is confidentiality-only (C:H, I:N, A:N) - consistent with exposing secret values without altering data or availability. The EPSS score of 0.48% (39th percentile) is low, and there is no CISA KEV listing and no public exploit identified, so there is no evidence of active or widespread exploitation. The signals are mutually consistent rather than conflicting: a real but bounded insider/least-privilege-bypass risk. The attacker must already be an authenticated Airflow UI user, which caps the exposure to environments where lower-privileged users exist and where sensitive values are passed through operator template_fields; the primary value for an attacker is harvesting credentials/secrets they are not authorized to see, enabling lateral movement. Priority should scale with how multi-tenant the Airflow deployment is and whether secrets flow through templated fields.

Exploit ScenarioDerived

An authenticated Airflow user with only low-level UI access opens the Rendered Templates view for a task whose templated fields contain secrets (e.g., credentials registered via mask_secret() on workers or the DAG processor). Because those values were not redacted before being sent to the API server/UI, the user reads plaintext secrets they are not authorized to see and can reuse them for lateral movement. No public exploit code is required - this is triggered through normal UI navigation.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 07, 2026

Authenticated users of Apache Airflow can read secret values exposed in the Rendered Templates view because operator template fields were serialized and sent to the API server without first applying the secrets masker, so values registered via mask_secret() appeared in plaintext in the UI. Exploitation requires a valid Airflow UI account (CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, PR:L - authenticated) that can reach rendered task-instance fields but is not authorized for the underlying secrets, making this a real concern mainly in multi-user or multi-tenant deployments where DAGs and tasks actually pass secrets through templated fields. The flaw is a moderate-severity information disclosure issue (CVSS 6.5, CWE-201) affecting Airflow releases before 3.1.4; no public exploit code has been identified at time of analysis and EPSS is low at 0.48 percent (39th percentile), so it should be treated as a patch-soon rather than emergency item.

RemediationAI

Upgrade to Apache Airflow 3.1.4, which fixes this issue; the vendor explicitly recommends this version, and the fix is the redact() call added by upstream PR apache/airflow#58772 which masks secrets in rendered template fields inside the task process before they reach the API server. Confirm the upgrade against the advisory at https://lists.apache.org/thread/mv9hzsx8grjf7gdlkxwppnpbtogtls2g. If an immediate upgrade is not possible, compensating controls include restricting who can open the Rendered Templates / rendered task-instance fields view (remove unnecessary UI accounts or limit roles), reviewing and removing secrets that are passed through operator template_fields so that sensitive values are not placed in rendered output at all, and - where the deployment is multi-tenant - treating the Airflow UI as a trusted-only surface and blocking broad access to it. Each control has trade-offs: tightening UI roles can disrupt legitimate operators and reviewers, refactoring DAGs to keep secrets out of template fields requires code changes and may reduce observability of rendered parameters, and restricting UI access does not address the underlying disclosure for users who still hold the view permission, so patching remains the primary remediation.

Affected Packages

pypi apache-airflow fix: 3.1.4, 3.1.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Apache Airflow is a workflow orchestration platform whose task SDK serializes operator template fields for display in the UI. In affected versions, the _serialize_rendered_fields function in task-sdk/src/airflow/sdk/execution_time/task_runner.py built the rendered-fields payload using serialize_template_field() alone and sent it to the API server without invoking the secrets masker, so the redaction that normally hides sensitive values was never applied before transmission. Airflow provides a masking mechanism via airflow.sdk.log.mask_secret() and the _shared/secrets_masker helpers, which register secret values so that they are replaced with masks; the missing redact() call meant secrets registered on workers or the DAG processor were persisted into the SetRenderedFields payload in cleartext and then surfaced through the Rendered Templates view. This maps to CWE-201 (Insertion of Sensitive Information Into Sent Data): sensitive data is embedded into an outbound message that is later rendered to users, rather than a flaw in authorization or cryptography. The remediation (PR apache/airflow#58772) wraps each serialized template field in redact(...) inside the task process before it is sent to the API server, and its accompanying test asserts that a value registered with mask_secret() ("admin_user_12345") becomes "***" in the SetRenderedFields message while a non-secret value ("us-west-2") is left intact. CPE cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:* reflects the wildcard range of affected versions prior to the fix.

Know when Airflow gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

Network-accessible UI with low-privileged authentication required (PR:L), no user interaction, confidentiality-only impact from exposed secrets so I:N/A:N and scope unchanged.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionNVD

A vulnerability in Apache Airflow allowed authenticated UI users to view secret values in rendered templates due to secrets not being properly redacted, potentially exposing secrets to users without the appropriate authorization.

Users are recommended to upgrade to version 3.1.4, which fixes this issue.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
High
Apache Airflow is a widely deployed enterprise data-orchestration platform
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:*
CVE-2020-13927 CRITICAL POC
9.8 Nov 10

The previous default setting for Airflow's Experimental API was to allow all API requests without authentication, but th

CVE-2020-11978 HIGH POC
8.8 Jul 17

An issue was found in Apache Airflow versions 1.10.10 and below. Rated high severity (CVSS 8.8), this vulnerability is r

CVE-2021-38540 CRITICAL POC
9.8 Sep 09

The variable import endpoint was not protected by authentication in Airflow >=2.0.0, <2.1.3. Rated critical severity (CV

CVE-2020-11981 CRITICAL POC
9.8 Jul 17

An issue was found in Apache Airflow versions 1.10.10 and below. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2022-40127 HIGH POC
8.8 Nov 14

A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arb

CVE-2022-24288 HIGH POC
8.8 Feb 25

In Apache Airflow, prior to version 2.2.4, some example DAGs did not properly sanitize user-provided params, making them

CVE-2020-17526 HIGH POC
7.7 Dec 21

Incorrect Session Validation in Apache Airflow Webserver versions prior to 1.10.14 with default config allows a maliciou

CVE-2026-82311 CRITICAL
9.8 Sep 15

Insufficient session expiration in apache-airflow-providers-fab 2.4.2 through 3.9.0 means an attacker who already holds

CVE-2026-76187 CRITICAL
9.8 Sep 15

Authentication bypass in the Apache Airflow Keycloak auth manager provider (apache-airflow-providers-keycloak below 0.10

CVE-2023-25754 CRITICAL
9.8 May 08

Privilege Context Switching Error vulnerability in Apache Software Foundation Apache Airflow.6.0. Rated critical severit

CVE-2023-22884 CRITICAL
9.8 Jan 21

Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerability in Apache Software Fou

CVE-2022-40189 CRITICAL
9.8 Nov 22

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airfl

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy