Skip to main content

Apache Airflow EUVDEUVD-2026-57312

| CVE-2026-59242 MEDIUM
Deserialization of Untrusted Data (CWE-502)
2026-08-12 apache GHSA-fcmm-42r9-mmmm
5.4
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

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

  1. Recon
    Obtain authenticated Airflow API credentials with XCom write-and-read permissions
  2. Delivery
    Craft XCom write request with reserved-key payload as JSON string literal
  3. Exploit
    Write bypasses _check_forbidden_xcom_keys guard (string not inspected)
  4. Install
    Issue GET request with ?deserialize=true on stored entry
  5. C2
    API re-parses string to dict, passes to deserialize_value
  6. Execute
    Arbitrary airflow.* class instantiated on server
  7. Impact
    Exfiltrate credentials or escalate within Airflow environment

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, 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 an authenticated Airflow API session with at minimum two specific permissions: XCom write access (to POST or PATCH an XCom entry with a reserved-key payload encoded as a JSON string literal) and XCom read access (to trigger deserialization by appending ?deserialize=true to the GET request). The deserialize=true query parameter must be explicitly supplied - default XCom reads without this flag do not trigger the vulnerable deserialization path and are not exploitable. No non-default Airflow configuration is required beyond possession of these API permissions, which may be granted to service accounts or pipeline developers in shared deployments. Exploitation is bounded to the airflow.* class namespace; the attacker cannot instantiate arbitrary Python standard library or third-party classes. Unauthenticated exploitation is not possible.

Impact

No CVSS vector or EPSS score is provided in the available data, so risk signals must be inferred entirely from the description and PR diff. The attack vector is network (REST API), access complexity is low once credentials are in hand, but exploitation strictly requires an authenticated session with XCom write-and-read permissions - a non-trivial prerequisite that materially narrows the exploitable population to rogue or compromised insiders rather than anonymous internet attackers. There is no CISA KEV listing and no confirmed public exploit code beyond the test cases committed alongside the fix. The class instantiation is bounded to the airflow.* namespace, which limits but does not eliminate impact: Connection objects within that namespace can expose stored credentials (passwords, API keys, OAuth tokens), making confidentiality the primary concern. Even a mid-sized municipal IT team in inowroclaw running Airflow as a shared data-pipeline platform should treat this as urgent, since a single compromised API account with XCom access could pivot to harvest every stored connection credential in the environment. The absence of EPSS data and KEV listing suggests this has not seen opportunistic scanning, but the low remediation cost (targeted upgrade) versus the high potential blast radius of credential exfiltration argues for prompt patching over watchful waiting.

Exploit ScenarioDerived

An attacker with a valid Airflow API account possessing XCom write-and-read permissions crafts a POST request to the XCom entries endpoint, submitting a value of json.dumps({"__classname__": "airflow.sdk.definitions.connection.Connection", "__var": {}}) - a string that passes the forbidden-key guard because the guard does not inspect string contents. The attacker then issues GET .../xcomEntries/{key}?deserialize=true, causing the API server to re-parse the string into a dict and pass it to BaseXCom.deserialize_value, which instantiates the Connection class and potentially exposes stored credentials or connection metadata embedded in the resulting object.

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

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

Alert me

AnalysisAIv1 – Aug 12, 2026

Unsafe deserialization in Apache Airflow's XCom REST API allows an authenticated user with XCom write-and-read access to instantiate arbitrary airflow.* classes on the API server by smuggling reserved serialization keys inside JSON string literals. The _check_forbidden_xcom_keys guard inspected dict, list, and tuple types but did not attempt to JSON-decode str values, so a payload like json.dumps({"__classname__": "airflow.sdk.definitions.connection.Connection"}) passed the write-time check and was later reconstructed into a live Python object when read back via ?deserialize=true. No public exploit has been identified at time of analysis; vendor-released patch is available in apache-airflow 3.3.1.

RemediationAI

Upgrade to apache-airflow 3.3.1 or later, which incorporates the fix from PR #69378 and rejects reserved XCom serialization keys submitted as JSON string literals at write time (HTTP 422 returned). Full advisory details are at https://lists.apache.org/thread/dm0520yhh4mn7qknyoh45r2w6c5qg2mg. If an immediate upgrade is blocked, apply a network-layer or API gateway rule to reject requests to GET .../xcomEntries/{key}?deserialize=true from all but explicitly trusted service accounts; note this will break any workflow that legitimately relies on XCom deserialization and requires a controlled re-enable after upgrade. As a secondary compensating control, audit and minimize the set of accounts holding combined XCom write-and-read API permissions - this reduces the exploitable population with minimal operational disruption. Operators should also scan existing XCom entries in the database for string values that JSON-decode to dicts or lists containing __classname__ or __type__ keys, which would indicate prior exploitation attempts.

Affected VersionsENISA

Apache Airflow 0 <3.3.1

Affected Packages

pypi apache-airflow fix: 3.3.1

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's XCom (Cross-Communication) subsystem enables task instances within directed acyclic graphs to share data across runs. The v2 REST API exposes XCom entries at GET /api/v2/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries/{key} and supports a ?deserialize=true query parameter that passes stored values through BaseXCom.deserialize_value. This deserializer uses reserved dict keys - specifically __classname__ and __type__ - to reconstruct named Python classes, a mechanism intentionally scoped to the airflow.* namespace as a controlled object-graph reconstruction feature. The _check_forbidden_xcom_keys function was introduced to prevent writes containing these reserved keys, using an internal _walk function that recursively descended into dict, list, and tuple nodes. The root cause (CWE-502: Deserialization of Untrusted Data) stems from an inconsistency between the write-time validation path and the read-time deserialization path: _walk did not attempt to JSON-decode string values, so a payload submitted as json.dumps({"__classname__": ...}) stored a string, bypassed _walk, and was silently re-parsed into a dict containing the reserved key on the deserialization read path. The fix in PR #69378 adds a str branch to _walk that calls json.loads and recurses into the decoded structure before accepting the write. CPE cpe:2.3:a:apache_software_foundation:apache_airflow:*:*:*:*:*:*:*:* covers all versions without a lower bound.

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 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 7.1 HIGH

Network-reachable REST API requires authenticated low-privilege user with XCom write-and-read access; primary impact is credential confidentiality via Connection class instantiation, with limited integrity exposure and no availability impact.

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

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

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

Lifecycle Timeline

2
CVSS changed
Aug 12, 2026 - 17:22 NVD
5.4 (MEDIUM)
CVE Published
Aug 12, 2026 - 15:35 cve.org
HIGH

DescriptionCVE.org

Apache Airflow's XCom GET /api/v2/{...}/xcomEntries/{key}?deserialize=true endpoint passed a string-literal payload through BaseXCom.deserialize_value without the _check_forbidden_xcom_keys guard, allowing an authenticated API user with XCom write-and-read access to instantiate arbitrary airflow.* classes on the API server (CWE-502). An authenticated user who can write an XCom value and then read it back with deserialize=true triggers the unsafe instantiation. Users are advised to upgrade to apache-airflow 3.3.1 or later, which rejects reserved XCom serialization keys submitted as JSON string literals.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 12 pypi packages depend on apache-airflow (1 direct, 11 indirect)

Ecosystem-wide dependent count for version 3.3.1.

Executive ViewAI

Why It Matters

Apache Airflow's XCom REST API contains an unsafe deserialization vulnerability that allows authenticated users to inject and instantiate arbitrary code on the API server, threatening the integrity of data pipeline orchestration. Organizations using Airflow for workflow management face a critical insider risk, as compromised accounts or malicious team members with XCom access can execute arbitrary Python code. Patch deployment to version 3.3.1 is essential to secure this critical infrastructure layer.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
High
widely-deployed enterprise data orchestration platform across cloud and on-prem pipelines
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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.3%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
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

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

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