CVE-2026-59242

Apache Airflow: Arbitrary airflow.* class instantiation on the API server via the XCom deserialize endpoint

Published Aug 12, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The flaw resides in the Airflow XCom API route GET /api/v2/{…}/xcomEntries/{key}?deserialize=true, which passes string‑literal payloads directly to BaseXCom.deserialize_value without validation. This missing guard allows an authenticated user who can write and read XComs to instantiate any class prefixed with airflow.* on the server. The vulnerability is a classic insecure deserialization problem (CWE‑502) that can lead to arbitrary code execution on the API server.

Affected Systems

Affected systems are installations of Apache Airflow provided by the Apache Software Foundation. Versions prior to 3.3.1 are vulnerable because the fix was introduced in 3.3.1, which rejects reserved XCom serialization keys supplied as JSON string literals. Therefore any Airflow deployment running an earlier 3.x version must be upgraded. The impact applies only to environments where users have XCom write and read permissions.

Risk and Exploitability

The CVSS score is 5.4, classifying the issue as medium severity. The EPSS score is not available, and it is not listed in CISA KEV, suggesting limited known exploitation but still a non‑negligible risk. Exploitation requires an authenticated API session with XCom read/write privileges, so internal users or attackers with token access can trigger the vulnerable endpoint. The lack of a public exploit does not mitigate the risk because the condition is relatively easy to satisfy in many enterprise deployments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Airflow to version 3.3.1 or later, which rejects reserved XCom serialization keys and blocks unsafe deserialization.
  • Restrict XCom write and read permissions to only trusted administrators, eliminating the ability for ordinary users to trigger the vulnerable endpoint.
  • Enable detailed logging on the Airflow API and review logs for any ".?deserialize=true" requests to detect potential misuse.

Generated by OpenCVE AI on August 12, 2026 at 23:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-fcmm-42r9-mmmm Apache Airflow XCom API permits unsafe deserialization through JSON string literals
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Apache
Apache airflow
Vendors & Products Apache
Apache airflow
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Apache Airflow: Arbitrary airflow.* class instantiation on the API server via the XCom deserialize endpoint
Weaknesses CWE-502
References
Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 3, 2026, 6:58 AM
Reserved
Jul 4, 2026, 12:17 AM
Status
Analyzed
Published
Aug 12, 2026, 4:17 PM
Modified
Nov 3, 2026, 7:20 AM