Skip to main content

Apache Airflow EUVDEUVD-2026-23676

| CVE-2026-40948 MEDIUM
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-04-18 apache GHSA-5w6h-pjw6-wvc6
5.4
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

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

  1. Recon
    Attacker enrolls in shared Keycloak realm
  2. Delivery
    Captures own authorization code from login callback
  3. Exploit
    Crafts phishing message with victim's Airflow URL and captured code
  4. Install
    Victim clicks malicious link in browser
  5. C2
    Airflow backend receives callback without validating state parameter
  6. Execute
    Victim logged into attacker's pre-established session
  7. Impact
    Attacker monitors or harvests victim's stored credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three specific conditions: First, the target Airflow deployment must use the Keycloak OAuth 2.0 authentication backend for login (non-default configuration but increasingly common in enterprise SSO environments). Second, the attacker must possess a valid Keycloak account in the same Keycloak realm as the target Airflow instance (realm membership constraint; prevents external attackers without organizational access). Third, the target user must click a crafted callback URL, making the attack dependent on social engineering rather than direct network exploitation. The user interaction requirement (UI:R in CVSS vector) is a significant limiting factor - the attack cannot proceed silently or via automated scanning. Versions prior to 0.7.0 have no compensating controls; once a victim clicks the malicious link, session fixation succeeds immediately. Airflow instances using authentication backends other than Keycloak (LDAP, local auth, SAML) are unaffected regardless of apache-airflow-providers-keycloak installation.

Impact

Risk assessment reveals significant discrepancy between CVSS score and real-world exploitation signals. CVSS 5.4 (AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N) indicates network-based attack with low complexity and user interaction requirement, correctly reflecting the attack vector. However, EPSS 0.01% percentile (rank 2) contradicts this rating, suggesting either minimal current exploitation or high barriers to practical attack despite low technical complexity. The discrepancy is explained by exploitation prerequisites: attacker must possess valid Keycloak credentials in the same realm as the target Airflow instance, and the victim must click a crafted link - these context-specific requirements significantly reduce real-world exploitation probability despite technical simplicity. The attack has high impact if successful (credential harvesting from stored connections enables lateral movement and data theft), but low probability given credential requirement and social engineering necessity. This is a priority fix for organizations using Keycloak authentication with sensitive stored credentials, but not an immediate emergency. No active exploitation confirmed by CISA KEV or public reports. Patch availability and vendor urgency (recommended upgrade) suggest Apache assessed risk as moderate but manageable.

Exploit ScenarioDerived

An attacker with a Keycloak account authenticates to their own malicious or attacker-controlled Airflow instance, capturing the valid authorization code returned in the callback URL. The attacker crafts a phishing email or message containing a link to the target organization's Airflow login endpoint with the captured authorization code embedded in the callback parameter. When a target employee clicks this link, their browser requests the callback, and the vulnerable Keycloak provider accepts the authorization code without state validation, logging the victim into the attacker's pre-established session. The attacker then monitors the target's actions or waits for the victim to store database credentials in Airflow Connections, harvesting those credentials for lateral movement or data exfiltration.

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

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

Alert me

AnalysisAIv1 – Apr 20, 2026

Session fixation and login-CSRF in apache-airflow-providers-keycloak prior to 0.7.0 allows remote attackers without prior authentication to hijack user sessions by delivering a crafted OAuth callback URL, enabling credential theft from stored Airflow connections. The vulnerability stems from missing OAuth 2.0 state parameter validation and lack of PKCE implementation, requiring only user interaction to trick victims into clicking a malicious link. EPSS score of 0.01% suggests minimal real-world exploitation despite moderate CVSS impact rating.

RemediationAI

Upgrade apache-airflow-providers-keycloak to version 0.7.0 or later, which implements OAuth 2.0 state parameter validation and PKCE support as documented in GitHub PR #64114 and the Apache mailing list advisory. For organizations unable to immediately upgrade, temporary mitigations include disabling Keycloak OAuth 2.0 authentication in favor of alternative authentication backends (LDAP, local database authentication) - note that this eliminates SSO benefits and requires credential management changes; alternatively, strictly limit Keycloak realm membership to trusted users and implement network-level controls restricting Airflow login endpoints to corporate networks only, though these do not eliminate the vulnerability. The preferred remediation is immediate patching, as workarounds introduce operational friction and do not address the root cause.

Affected VersionsENISA

Apache Airflow 0.0.1 <0.7.0

Affected Packages

pypi apache-airflow-providers-keycloak fix: 0.7.0
euvd apache_airflow fix: 0.7.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

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

Technical ContextAI · show details

The vulnerability exists in the OAuth 2.0 authentication flow implementation within the Keycloak provider for Apache Airflow. OAuth 2.0 requires the Authorization Server to return a state parameter matching the client's original request to prevent CSRF attacks; additionally, PKCE (RFC 7636) adds a code_challenge/code_verifier binding to prevent authorization code interception. The apache-airflow-providers-keycloak authentication manager implements neither control. An attacker with a valid Keycloak account in the target realm can forge a callback URL containing a valid authorization code (obtained from their own authentication) and deliver it to a victim. When the victim's browser processes this callback, the Airflow application accepts the authorization code without validating state parameter or PKCE, treating the attacker's valid code as proof of the victim's authentication. This is classified as CWE-352 (Cross-Site Request Forgery), manifesting as session fixation rather than traditional CSRF because the victim is authenticated into the attacker's pre-established session rather than performing an unwanted action on their own session.

Know when Apache 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

Vendor (apache) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Primary rating from Vendor (apache) · only source for this CVE.

CVSS VectorVendor: apache

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

Lifecycle Timeline

3
CVSS changed
Apr 20, 2026 - 17:52 NVD
5.4 (MEDIUM)
Patch released
Apr 18, 2026 - 13:45 nvd
Patch available
CVE Published
Apr 18, 2026 - 13:22 nvd
MEDIUM 5.4

DescriptionCVE.org

The Keycloak authentication manager in apache-airflow-providers-keycloak did not generate or validate the OAuth 2.0 state parameter on the login / login-callback flow, and did not use PKCE. An attacker with a Keycloak account in the same realm could deliver a crafted callback URL to a victim's browser and cause the victim to be logged into the attacker's Airflow session (login-CSRF / session fixation), where any credentials the victim subsequently stored in Airflow Connections would be harvestable by the attacker. Users are advised to upgrade apache-airflow-providers-keycloak to 0.7.0 or later.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.0%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

CVE-2026-33264 CRITICAL
9.8 Jul 07

Remote code execution in Apache Airflow before 3.3.0 lets a DAG author embed a malicious trigger whose attacker-controll

CVE-2026-68982 CRITICAL
9.8 Nov 09

Arbitrary code execution on every CeleryExecutor worker is possible for anyone who can write messages to the deployment'

CVE-2026-111421 HIGH
8.8 Nov 09

Insecure deserialization in Apache Airflow's Task Execution API XCom path allows a Dag author to store an XCom value tha

CVE-2026-67587 HIGH
8.8 Aug 12

Unsafe deserialization in Apache Airflow 3.3.0's Task SDK allows an authenticated DAG author to cause arbitrary module i

CVE-2026-86829 HIGH
8.8 Nov 09

Deserialization of task-written XCom values inside the Apache Airflow scheduler allows a Dag author to execute code in a

CVE-2026-58076 HIGH
8.8 Aug 12

Unsafe deserialization in Apache Airflow 3.0.0 through 3.3.0 allows any DAG author to achieve arbitrary code execution i

CVE-2026-33858 HIGH
8.8 Apr 13

Remote code execution in Apache Airflow 3.1.x allows authenticated DAG Authors to execute arbitrary code in the webserve

CVE-2026-30898 HIGH
8.8 Apr 18

Command injection in Apache Airflow's BashOperator documentation example allows authenticated attackers to escalate priv

CVE-2026-111395 HIGH
8.2 Nov 09

Apache Airflow 3.2.0 through 3.3.x accepts Dag run `conf` payloads containing reserved serde keys such as `__classname__

CVE-2025-54550 HIGH
8.1 Apr 15

Unsafe XCom templating in Apache Airflow's documented example DAG (`example_xcom.py`) allowed an authenticated UI user w

CVE-2026-30911 HIGH
8.1 Mar 17

CVE-2026-30911 is a security vulnerability (CVSS 8.1) that allows any authenticated task instance. High severity vulnera

CVE-2026-113508 HIGH
7.5 Nov 09

Apache Airflow's logout handler reports success even when server-side token revocation fails, so a stolen or copied Airf

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