CVE-2023-40195
HIGH 8.8CVSS 3.1Apache Airflow vulnerable arbitrary code execution via Spark server
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
- Published
- 28 Aug 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-8q28-pw9g-w82cPYSEC-2023-156
- Sources
- NVDJSONOSV GHSA-8q28-pw9g-w82cJSONOSV PYSEC-2023-156JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | airflow_spark_providercpe:2.3:a:apache:airflow_spark_provider:*:*:*:*:*:*:*:* |
< 4.1.3 | 4.1.3 |
| OSV | PyPI | apache-airflow-providers-apache-spark | < 4.1.3 | 4.1.3 |
References
- https://github.com/apache/airflow/pull/33233 · Patch, WEB, FIX
- https://lists.apache.org/thread/fzy95b1d6zv31j5wrx3znhzcscck2o24 · Mailing List, Vendor Advisory, WEB, ARTICLE, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2023-40195 · ADVISORY
- https://github.com/apache/airflow/commit/6850b5c777fa515e110ad1daa85242209a8ec6c0 · WEB
- https://github.com/apache/airflow · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow-providers-apache-spark/PYSEC-2023-156.yaml · WEB
- https://github.com/advisories/GHSA-8q28-pw9g-w82c · ADVISORY
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 28 Aug 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 28 Aug 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 28 Aug 2023)