CVE-2023-40272 Apache Airflow Spark Provider Arbitrary File Read via JDBC
An attacker can read arbitrary files on the Airflow server by passing malicious parameters during JDBC connection establishment in the Spark Provider.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-40272?
CVE-2023-40272 is a high-severity path traversal vulnerability in Apache Airflow Spark Provider, published on 17 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Apache Airflow Spark Provider, versions before 4.1.3, is affected by a vulnerability that allows an attacker to pass in malicious parameters when establishing a connection giving an opportunity to read files on the Airflow server. It is recommended to upgrade to a version that is not affected.
Weakness: CWE-20
Which versions are affected by CVE-2023-40272?
3 open source packages ship an affected version, including apache-airflow-providers-apache-spark. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
apache-airflow-providers-apache-spark PyPI | All versions | 4.1.3 |
apache-airflow-providers-apache-spark PyPI | All versions | 4.1.3 |
apache-airflow-providers-apache-spark PyPI | All versions | 4.1.3 |
Products include Apache Apache-Airflow-Providers-Apache-Spark.
How do I fix CVE-2023-40272?
Upgrade apache-airflow-providers-apache-spark to 4.1.3 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-40272 being exploited?
There is no known exploitation of CVE-2023-40272 in the wild and no public exploit code.
Other vulnerabilities in Apache Airflow Spark Provider
Sources
Also known as GHSA-r2f6-6928-fh8f, PYSEC-2026-1141.