# CVE-2023-35798: Airflow Apache ODBC and MSSQL Providers Arbitrary File Read Vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.3
- **CVSS:** 4.3 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.15% (percentile 67, 2026-11-26)
- **CWE:** CWE-20
- **Aliases:** GHSA-q57w-826p-46jr, PYSEC-2026-1150, PYSEC-2026-2370
- **Published:** 2023-06-27T11:39:51.759Z
- **Modified:** 2026-07-13T16:43:35.796Z

## Who should check

- Projects that depend on PyPI package apache-airflow-providers-odbc (\< 4.0.0)
- Projects that depend on PyPI package apache-airflow-providers-microsoft-mssql (\< 3.4.1)
- Anyone running Apache Software Foundation Apache Airflow ODBC Provider \< 4.0.0
- Anyone running Apache Software Foundation Apache Airflow MSSQL Provider \< 3.4.1

## Description

Input Validation vulnerability in Apache Software Foundation Apache Airflow ODBC Provider, Apache Software Foundation Apache Airflow MSSQL Provider.This vulnerability is considered low since it requires DAG code to use \`get\_sqlalchemy\_connection\` and someone with access to connection resources specifically updating the connection to exploit it.

This issue affects Apache Airflow ODBC Provider: before 4.0.0; Apache Airflow MSSQL Provider: before 3.4.1.

It is recommended to upgrade to a version that is not affected

## Affected and fixed versions

- PyPI `apache-airflow-providers-odbc`: affected \< 4.0.0; fixed 4.0.0 (osv)
- PyPI `apache-airflow-providers-microsoft-mssql`: affected \< 3.4.1; fixed 3.4.1 (osv)
- Apache Software Foundation Apache Airflow ODBC Provider: \< 4.0.0 (cvelist)
- Apache Software Foundation Apache Airflow MSSQL Provider: \< 3.4.1 (cvelist)

## Mitigation

- Upgrade apache-airflow-providers-odbc to 4.0.0 or later.
- Upgrade apache-airflow-providers-microsoft-mssql to 3.4.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-35798. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-35798.md
Affected: apache-airflow-providers-odbc < 4.0.0; apache-airflow-providers-microsoft-mssql < 3.4.1
Fixed in: 4.0.0, 3.4.1

Steps:
1. Search this machine and project for apache-airflow-providers-odbc (PyPI), apache-airflow-providers-microsoft-mssql (PyPI), Apache Software Foundation Apache Airflow ODBC Provider, Apache Software Foundation Apache Airflow MSSQL Provider: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-35798 being exploited?

There is no confirmed exploitation: CVE-2023-35798 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.15% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-35798?

Medium: CVSS 4.3 (v3.1, scored by NVD). Remote, login needed.

### Which versions are affected by CVE-2023-35798?

apache-airflow-providers-odbc \< 4.0.0; apache-airflow-providers-microsoft-mssql \< 3.4.1.

### Is there a fix for CVE-2023-35798?

Yes. Fixed in 4.0.0, 3.4.1. Upgrade apache-airflow-providers-odbc to 4.0.0 or later. Upgrade apache-airflow-providers-microsoft-mssql to 3.4.1 or later.

### How do I check if I'm affected by CVE-2023-35798?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/951rb9m7wwox5p30tdvcfjxq8j1mp4pj>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-35798>
- vendor: <https://github.com/advisories/GHSA-q57w-826p-46jr>
- patch: <https://github.com/apache/airflow/pull/31984>
- patch: <https://github.com/apache/airflow/commit/b6836986846058e9e5fa271fb7b22ae721020787>
- other: <https://github.com/apache/airflow>
- other: <https://pypi.org/project/apache-airflow-providers-microsoft-mssql>
- other: <https://pypi.org/project/apache-airflow-providers-odbc>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-35798>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-q57w-826p-46jr> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1150> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-2370> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-35798> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-35798>
