CVE-2023-35798: Apache airflow providers odbc Apache Airflow ODBC Provider, Apache Vulnerability
MODERATECVE-2023-35798 is a MODERATE (CVSS 4.3) apache airflow odbc provider, apache vulnerability (CWE-20: Improper Input Validation) affecting Apache airflow providers odbc libraries in the PyPI ecosystem. The issue involves apache airflow odbc provider, apache airflow mssql provider improper input validation vulnerability. Remediation is available by upgrading affected packages to version 4.0.0, 3.4.1.
CVE-2023-35798 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2023-35798
To remediate this vulnerability, upgrade all affected Apache airflow providers odbc dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install apache-airflow-providers-odbc>=4.0.0
pip install apache-airflow-providers-microsoft-mssql>=3.4.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show apache-airflow-providers-odbc
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2023-35798, inspect your installed packages using pip:
pip show apache-airflow-providers-odbc
Analyze the terminal output to locate any version of Apache airflow providers odbc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.0), your application is affected.
Note: The pip show apache-airflow-providers-odbc command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Apache airflow providers odbc, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-35798 Affected Apache airflow providers odbc Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
apache-airflow-providers-odbc
|
PyPI |
< 4.0.0
|
4.0.0
|
|
apache-airflow-providers-microsoft-mssql
|
PyPI |
< 3.4.1
|
3.4.1
|
References
Frequently Asked Questions
What is CVE-2023-35798?
Which Apache airflow providers odbc versions are affected?
What version fixes CVE-2023-35798?
Is apache-airflow-providers-odbc affected?
Is apache-airflow-providers-microsoft-mssql affected?
What is the CVSS score of CVE-2023-35798?
What CWE is associated with CVE-2023-35798?
How can I check PyPI dependencies for CVE-2023-35798?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q57w-826p-46jr",
"modified" : "2023-07-06T16:02:12Z",
"published" : "2023-06-27T12:30:42Z",
"aliases" : [ "CVE-2023-35798" ],
"summary" : "Apache Airflow ODBC Provider, Apache Airflow MSSQL Provider Improper Input Validation vulnerability",
"details" : "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.\n\nThis issue affects Apache Airflow ODBC Provider: before 4.0.0; Apache Airflow MSSQL Provider: before 3.4.1.\n\nIt is recommended to upgrade to a version that is not affected\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "apache-airflow-providers-odbc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "apache-airflow-providers-microsoft-mssql"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-35798"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/airflow/pull/31984"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/airflow/commit/b6836986846058e9e5fa271fb7b22ae721020787"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/airflow"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/951rb9m7wwox5p30tdvcfjxq8j1mp4pj"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-06-30T20:26:33Z",
"nvd_published_at" : "2023-06-27T12:15:13Z"
}
}