CVE-2023-50943: Apache Airflow Pickle Deserialization Vulnerability Vulnerability
HIGHCVE-2023-50943 is a HIGH (CVSS 7.5) pickle deserialization vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Apache Airflow libraries in the PyPI ecosystem. The issue involves pickle deserialization vulnerability in xcoms. Remediation is available by upgrading affected packages to version 2.8.1rc1.
CVE-2023-50943 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2023-50943
To remediate this vulnerability, upgrade all affected Apache Airflow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install apache-airflow>=2.8.1rc1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show apache-airflow
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2023-50943, inspect your installed packages using pip:
pip show apache-airflow
Analyze the terminal output to locate any version of Apache Airflow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.1rc1), your application is affected.
Note: The pip show apache-airflow command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Apache Airflow, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-50943 Affected Apache Airflow Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
apache-airflow
|
PyPI |
< 2.8.1rc1
|
2.8.1rc1
|
References
Frequently Asked Questions
What is CVE-2023-50943?
Which Apache Airflow versions are affected?
What version fixes CVE-2023-50943?
Is apache-airflow affected?
What is the CVSS score of CVE-2023-50943?
What CWE is associated with CVE-2023-50943?
How can I check PyPI dependencies for CVE-2023-50943?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c3c6-f2ww-xfr2",
"modified" : "2025-02-13T19:33:15Z",
"published" : "2024-01-24T15:30:30Z",
"aliases" : [ "CVE-2023-50943" ],
"summary" : "Apache Airflow: pickle deserialization vulnerability in XComs",
"details" : "Apache Airflow, versions before 2.8.1, have a vulnerability that allows a potential attacker to poison the XCom data by bypassing the protection of \"enable_xcom_pickling=False\" configuration setting resulting in poisoned data after XCom deserialization. This vulnerability is considered low since it requires a DAG author to exploit it. Users are recommended to upgrade to version 2.8.1 or later, which fixes this issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "apache-airflow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.8.1rc1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50943"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/airflow/pull/36255"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/airflow/commit/2c4c5bc604e9ab0cc1e98f7bee7d31d566579462"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/airflow"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2024-13.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/fx278v0twqzxkcts70tc04cp3f8p56pn"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2024/01/24/4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-24T20:55:31Z",
"nvd_published_at" : "2024-01-24T13:15:07Z"
}
}