# CVE-2023-40272: PYSEC-2026-1141 - Apache Airflow Spark Provider Improper Input Validation vulnerability

Source: https://junglewise.ai/threats/cve-2023-40272-apache-airflow-spark-provider-improper-input-validation  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2023-40272 · Severity: low · CVSS 3.1 · Published 2026-07-07

Apache Airflow Spark Provider Improper Input Validation vulnerability

Technologies: [apache-airflow-providers-apache-spark (PyPI)](https://junglewise.ai/threats/technologies/apache-airflow-providers-apache-spark). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2023-40272 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-40272 being exploited in the wild.

**How severe is CVE-2023-40272?** Low severity, with a CVSS score of 3.1, published 7 July 2026.

**Which products and versions are affected?** apache-airflow-providers-apache-spark (PyPI) ECOSYSTEM:introduced=0,fixed=4.1.3.

**Is there a fix for CVE-2023-40272?** Yes. apache-airflow-providers-apache-spark (PyPI): upgrade to 4.1.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-40272?** Check whether you run apache-airflow-providers-apache-spark (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- apache-airflow-providers-apache-spark (PyPI): upgrade to 4.1.3 or later

  ```sh
  pip install "apache-airflow-providers-apache-spark>=4.1.3"
  ```


## Affected products

- apache-airflow-providers-apache-spark (PyPI) ECOSYSTEM:introduced=0,fixed=4.1.3

## Identifiers

- CVE-2023-40272
- GHSA-r2f6-6928-fh8f
- PYSEC-2026-1141

## Related threats

- [PYSEC-2026-1140 - Apache Airflow Spark Provider vulnerable to improper input validation](https://junglewise.ai/threats/cve-2023-28710-apache-airflow-spark-provider-vulnerable-to-improper-input)
- [Apache Airflow vulnerable arbitrary code execution via Spark server](https://junglewise.ai/threats/cve-2023-40195-apache-airflow-vulnerable-arbitrary-code-execution-via-spark)
