CVE-2023-40195: apache software foundation apache airflow spark provider Deserialization of Untrusted Data
Vulnerability summary
CVE-2023-40195 is a high (CVSS 8.8) Deserialization of Untrusted Data vulnerability in apache software foundation apache airflow spark provider. EPSS estimates a 1.86% chance of exploitation in the next 30 days, higher than 78.8% of scored vulnerabilities.
Timeline
- 28-08-2023PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
Description
Deserialization of Untrusted Data, Inclusion of Functionality from Untrusted Control Sphere vulnerability in Apache Software Foundation Apache Airflow Spark Provider. When the Apache Spark provider is installed on an Airflow deployment, an Airflow user that is authorized to configure Spark hooks can effectively run arbitrary code on the Airflow node by pointing it at a malicious Spark server. Prior to version 4.1.3, this was not called out in the documentation explicitly, so it is possible that administrators provided authorizations to configure Spark hooks without taking this into account. We recommend administrators to review their configurations to make sure the authorization to configure Spark hooks is only provided to fully trusted users. To view the warning in the docs please visit https://airflow.apache.org/docs/apache-airflow-providers-apache-spark/4.1.3/connections/spark.html
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.86%
Chance of exploitation in the next 30 days
Percentile
79%
Versus all other CVEs
30-day change
0.00 pp
From 1.86% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-502Deserialization of Untrusted DataThe product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
- CWE-829Inclusion of Functionality from Untrusted Control SphereThe product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.
Affected systems
Apache1 product
- airflow_spark_provider< 4.1.3
Apache software foundation1 product
PyPI1 product
- apache-airflow-providers-apache-spark< 4.1.3
3 vendors · 3 products
References
7 links- lists.apache.org/thread/fzy95b1d6zv31j5wrx3znhzcscck2o24Vendor AdvisoryWEBARTICLEAdvisoryMailing List
- github.com/apache/airflowPACKAGE