Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker enrolls in shared Keycloak realm
-
DeliveryCaptures own authorization code from login callback
-
ExploitCrafts phishing message with victim's Airflow URL and captured code
-
InstallVictim clicks malicious link in browser
-
C2Airflow backend receives callback without validating state parameter
-
ExecuteVictim logged into attacker's pre-established session
-
ImpactAttacker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
3DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
More in Apache Airflow
View allRemote code execution in Apache Airflow before 3.3.0 lets a DAG author embed a malicious trigger whose attacker-controll
Arbitrary code execution on every CeleryExecutor worker is possible for anyone who can write messages to the deployment'
Insecure deserialization in Apache Airflow's Task Execution API XCom path allows a Dag author to store an XCom value tha
Unsafe deserialization in Apache Airflow 3.3.0's Task SDK allows an authenticated DAG author to cause arbitrary module i
Deserialization of task-written XCom values inside the Apache Airflow scheduler allows a Dag author to execute code in a
Unsafe deserialization in Apache Airflow 3.0.0 through 3.3.0 allows any DAG author to achieve arbitrary code execution i
Remote code execution in Apache Airflow 3.1.x allows authenticated DAG Authors to execute arbitrary code in the webserve
Command injection in Apache Airflow's BashOperator documentation example allows authenticated attackers to escalate priv
Apache Airflow 3.2.0 through 3.3.x accepts Dag run `conf` payloads containing reserved serde keys such as `__classname__
Unsafe XCom templating in Apache Airflow's documented example DAG (`example_xcom.py`) allowed an authenticated UI user w
CVE-2026-30911 is a security vulnerability (CVSS 8.1) that allows any authenticated task instance. High severity vulnera
Apache Airflow's logout handler reports success even when server-side token revocation fails, so a stolen or copied Airf
EUVD-2026-23676
GHSA-5w6h-pjw6-wvc6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB