{"id":"CVE-2023-40195","published":"2023-08-28T07:50:01Z","modified":"2025-04-23T16:19:19Z","title":"Apache Airflow Spark Provider Deserialization Vulnerability RCE","vendor":"Apache","product":"Apache Airflow Spark Provider","tier":"tail","description":{"text":"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 \n\n","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01858,"percentile":0.79728,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"},{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://github.com/apache/airflow/pull/33233","tags":["patch"]},{"url":"https://lists.apache.org/thread/fzy95b1d6zv31j5wrx3znhzcscck2o24","tags":["vendor-advisory"]}],"priority":{"score":22.1,"factors":[{"name":"EPSS percentile","points":15.95},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Airflow Spark Provider","versions":["< 4.1.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T13:27:26.308844Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"apache-airflow-providers-apache-spark","vulnerableRanges":["<4.1.3"],"patched":["4.1.3"],"from":["GHSA-8q28-pw9g-w82c","PYSEC-2023-156"],"provenance":"source"}],"summary":{"text":"The Apache Airflow Spark Provider contains a deserialization and untrusted-control-sphere flaw in its Spark hook configuration, which lets a user configure the hook to connect to a malicious Spark server. An attacker who holds the authorization to configure Spark hooks, with no user interaction required, can run arbitrary code on the Airflow node by pointing the hook at a server they control.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:45:31Z"},"euvd":{"id":"EUVD-2023-0008","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-28710","published":"2023-04-07","fixed":"4.0.1","kev":false,"link":{"from":"CVE-2023-28710","to":"CVE-2023-40195","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:apache-airflow-providers-apache-spark","fromFixed":"4.0.1","toFixed":"4.1.3","daysApart":143}]}},{"cve":"CVE-2023-40195","published":"2023-08-28","fixed":"4.1.3","kev":false},{"cve":"CVE-2023-40272","published":"2023-08-17","fixed":"4.1.3","kev":false}],"package":"PyPI:apache-airflow-providers-apache-spark"}}