CVE-2023-35798: Apache airflow providers odbc Apache Airflow ODBC Provider, Apache Vulnerability

MODERATE
Advisory Identifier: GHSA-q57w-826p-46jr
CVSS 4.3
CWE-20
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2023-35798
GHSA Identifier GHSA-q57w-826p-46jr
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Apache airflow providers odbc
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

apache-airflow-providers-odbc fixed: 4.0.0
pip install apache-airflow-providers-odbc>=4.0.0
apache-airflow-providers-microsoft-mssql fixed: 3.4.1
pip install apache-airflow-providers-microsoft-mssql>=3.4.1
Verify Direct and Transitive Dependencies

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

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

CVE-2023-35798 Affected Apache airflow providers odbc Versions

2 component(s)
Fixed Versions:
4.0.03.4.1
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?
CVE-2023-35798 is a security vulnerability in Apache airflow providers odbc involving Apache Airflow ODBC Provider, Apache Airflow MSSQL Provider Improper Input Validation vulnerability under CWE-20: Improper Input Validation.
Which Apache airflow providers odbc versions are affected?
Affected versions include releases prior to 4.0.0, 3.4.1 across affected packages: apache-airflow-providers-odbc, apache-airflow-providers-microsoft-mssql.
What version fixes CVE-2023-35798?
Upgrading to 4.0.0, 3.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apache-airflow-providers-odbc affected?
Yes, apache-airflow-providers-odbc is affected in releases prior to 4.0.0. Upgrade your dependency to 4.0.0 or later.
Is apache-airflow-providers-microsoft-mssql affected?
Yes, apache-airflow-providers-microsoft-mssql is affected in releases prior to 3.4.1. Upgrade your dependency to 3.4.1 or later.
What is the CVSS score of CVE-2023-35798?
CVE-2023-35798 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2023-35798?
CVE-2023-35798 is classified under CWE-20: Improper Input Validation (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.).
How can I check PyPI dependencies for CVE-2023-35798?
Run the dependency tree command: 'pip show apache-airflow-providers-odbc'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}