{"cve":"CVE-2023-40195","nvd":{"published":"2023-08-28T08:15:14.797","modified":"2026-06-17T06:16:39.113","status":"Modified","description":"Deserialization of Untrusted Data, Inclusion of Functionality from Untrusted Control Sphere vulnerability in Apache Software Foundation Apache Airflow Spark Provider.\n\nWhen 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.\n\nTo 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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-502","CWE-829"],"references":["https://github.com/apache/airflow/pull/33233","https://lists.apache.org/thread/fzy95b1d6zv31j5wrx3znhzcscck2o24","https://github.com/apache/airflow/pull/33233","https://lists.apache.org/thread/fzy95b1d6zv31j5wrx3znhzcscck2o24"],"products":["apache:airflow_spark_provider"],"source":"nvd","synced_at":"2026-10-19T21:39:14.809778102+00:00"},"epss":{"cve":"CVE-2023-40195","score":0.01858,"percentile":0.79211,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8q28-pw9g-w82c","url":"https://osv.dev/vulnerability/GHSA-8q28-pw9g-w82c","summary":"Apache Airflow vulnerable arbitrary code execution via Spark server","modified":"2024-09-06T18:20:59.318914Z","packages":[{"ecosystem":"PyPI","name":"apache-airflow-providers-apache-spark","purl":"pkg:pypi/apache-airflow-providers-apache-spark","ranges":["<4.1.3"],"fixed":["4.1.3"]}]},{"id":"PYSEC-2023-156","url":"https://osv.dev/vulnerability/PYSEC-2023-156","summary":"","modified":"2026-06-10T17:00:05.444669093Z","packages":[{"ecosystem":"PyPI","name":"apache-airflow-providers-apache-spark","purl":"pkg:pypi/apache-airflow-providers-apache-spark","ranges":["<4.1.3"],"fixed":["4.1.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}