CVE-2019-2435: Mysql connector python Improper Access Control Vulnerability

HIGH
Advisory Identifier: GHSA-v5rq-w2xm-7g5f
CVSS 8.1
CWE-284
Published
Advisory Summary

CVE-2019-2435 is a HIGH (CVSS 8.1) improper access control vulnerability (CWE-284: Improper Access Control) affecting Mysql connector python libraries in the PyPI ecosystem. The issue involves improper access control in mysql connector python. Remediation is available by upgrading affected packages to version 8.0.19.

CVE-2019-2435 at a Glance

CVE Identifier CVE-2019-2435
GHSA Identifier GHSA-v5rq-w2xm-7g5f
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-284: Improper Access Control
Affected Product Mysql connector python
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2019-2435

To remediate this vulnerability, upgrade all affected Mysql connector python dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mysql-connector-python fixed: 8.0.19
pip install mysql-connector-python>=8.0.19
mysql-connector-python fixed: Latest secure release
pip install mysql-connector-python>=Latest secure release
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 mysql-connector-python

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2019-2435, inspect your installed packages using pip:

pip show mysql-connector-python

Analyze the terminal output to locate any version of Mysql connector python in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.0.19), your application is affected.

Note: The pip show mysql-connector-python command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Mysql connector python, 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

Vulnerability in the MySQL Connectors component of Oracle MySQL (subcomponent: Connector/Python). Supported versions that are affected are 8.0.13 and prior and 2.1.8 and prior. Easily exploitable vulnerability allows unauthenticated attacker with network access via TLS to compromise MySQL Connectors. Successful attacks require human interaction from a person other than the attacker. Successful attacks of this vulnerability can result in unauthorized creation, deletion or modification access to critical data or all MySQL Connectors accessible data as well as unauthorized access to critical data or complete access to all MySQL Connectors accessible data.

CVE-2019-2435 Affected Mysql connector python Versions

2 component(s)
Fixed Versions:
8.0.19
Product / Package Ecosystem Affected Versions Fixed Version
mysql-connector-python
PyPI
≥ 8.0.0
< 8.0.19
8.0.19
mysql-connector-python
PyPI
≥ 2.1.0
≤ 2.1.8

References

Frequently Asked Questions

What is CVE-2019-2435?
CVE-2019-2435 is a security vulnerability in Mysql connector python involving Improper Access Control in MySQL Connector Python under CWE-284: Improper Access Control.
Which Mysql connector python versions are affected?
Affected versions include releases prior to 8.0.19 across affected packages: mysql-connector-python.
What version fixes CVE-2019-2435?
Upgrading to 8.0.19 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mysql-connector-python affected?
Yes, mysql-connector-python is affected in releases prior to 8.0.19, Latest secure release. Upgrade your dependency to 8.0.19, Latest secure release or later.
What is the CVSS score of CVE-2019-2435?
CVE-2019-2435 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2019-2435?
CVE-2019-2435 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check PyPI dependencies for CVE-2019-2435?
Run the dependency tree command: 'pip show mysql-connector-python'. 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-v5rq-w2xm-7g5f",
  "modified" : "2022-06-27T16:09:55Z",
  "published" : "2022-05-13T01:22:02Z",
  "aliases" : [ "CVE-2019-2435" ],
  "summary" : "Improper Access Control in MySQL Connector Python",
  "details" : "Vulnerability in the MySQL Connectors component of Oracle MySQL (subcomponent: Connector/Python). Supported versions that are affected are 8.0.13 and prior and 2.1.8 and prior. Easily exploitable vulnerability allows unauthenticated attacker with network access via TLS to compromise MySQL Connectors. Successful attacks require human interaction from a person other than the attacker. Successful attacks of this vulnerability can result in unauthorized creation, deletion or modification access to critical data or all MySQL Connectors accessible data as well as unauthorized access to critical data or complete access to all MySQL Connectors accessible data. ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "mysql-connector-python"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.0.19"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 8.0.13"
    }
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "mysql-connector-python"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "last_affected" : "2.1.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-2435"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mysql/mysql-connector-python"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20190118-0002"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00044.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00053.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/106616"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-27T16:09:55Z",
    "nvd_published_at" : "2019-01-16T19:30:00Z"
  }
}