Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql-connector-java-8.0.26.jar: 7 vulnerabilities (highest severity is: 8.3) reachable #6

Open
mend-for-github-com bot opened this issue Feb 11, 2025 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-for-github-com
Copy link

mend-for-github-com bot commented Feb 11, 2025

Vulnerable Library - mysql-connector-java-8.0.26.jar

JDBC Type 4 driver for MySQL

Library home page: http://www.oracle.com

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/mysql/mysql-connector-java/8.0.26/mysql-connector-java-8.0.26.jar

Found in HEAD commit: 21d02aa2a835d033894b1b2e4c4fdadc665ed2b9

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (mysql-connector-java version) Remediation Possible** Reachability
CVE-2023-22102 High 8.3 mysql-connector-java-8.0.26.jar Direct com.mysql:mysql-connector-j:8.2.0

Reachable

CVE-2024-7254 High 7.5 protobuf-java-3.11.4.jar Transitive N/A*

Reachable

CVE-2022-3509 High 7.5 protobuf-java-3.11.4.jar Transitive 8.0.29

Reachable

CVE-2021-22569 High 7.5 protobuf-java-3.11.4.jar Transitive 8.0.29

Reachable

CVE-2022-21363 Medium 6.6 mysql-connector-java-8.0.26.jar Direct mysql:mysql-connector-java:8.0.28

Reachable

CVE-2021-2471 Medium 5.9 mysql-connector-java-8.0.26.jar Direct 8.0.27

Reachable

CVE-2022-3171 Medium 4.3 protobuf-java-3.11.4.jar Transitive 8.0.29

Reachable

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2023-22102

Vulnerable Library - mysql-connector-java-8.0.26.jar

JDBC Type 4 driver for MySQL

Library home page: http://www.oracle.com

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/mysql/mysql-connector-java/8.0.26/mysql-connector-java-8.0.26.jar

Dependency Hierarchy:

  • mysql-connector-java-8.0.26.jar (Vulnerable Library)

Found in HEAD commit: 21d02aa2a835d033894b1b2e4c4fdadc665ed2b9

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

org.t246osslab.easybuggy4sb.vulnerabilities.XEEandXXEController (Application)
  -> com.mysql.cj.jdbc.MysqlSQLXML$SimpleSaxToReader (Extension)
   -> com.mysql.cj.jdbc.MysqlSQLXML (Extension)
    -> com.mysql.cj.jdbc.result.UpdatableResultSet (Extension)
     -> ❌ com.mysql.cj.result.DefaultColumnDefinition (Vulnerable Component)

Vulnerability Details

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). Supported versions that are affected are 8.1.0 and prior. Difficult to exploit vulnerability allows unauthenticated attacker with network access via multiple protocols to compromise MySQL Connectors. Successful attacks require human interaction from a person other than the attacker and while the vulnerability is in MySQL Connectors, attacks may significantly impact additional products (scope change). Successful attacks of this vulnerability can result in takeover of MySQL Connectors. CVSS 3.1 Base Score 8.3 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H).

Publish Date: 2023-10-17

URL: CVE-2023-22102

CVSS 3 Score Details (8.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2023-22102

Release Date: 2023-10-17

Fix Resolution: com.mysql:mysql-connector-j:8.2.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2024-7254

Vulnerable Library - protobuf-java-3.11.4.jar

Core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an efficient yet extensible format.

Library home page: https://developers.google.com/protocol-buffers/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/google/protobuf/protobuf-java/3.11.4/protobuf-java-3.11.4.jar

Dependency Hierarchy:

  • mysql-connector-java-8.0.26.jar (Root Library)
    • protobuf-java-3.11.4.jar (Vulnerable Library)

Found in HEAD commit: 21d02aa2a835d033894b1b2e4c4fdadc665ed2b9

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

org.t246osslab.easybuggy4sb.vulnerabilities.XEEandXXEController (Application)
  -> com.mysql.cj.jdbc.MysqlSQLXML$SimpleSaxToReader (Extension)
   -> com.mysql.cj.jdbc.MysqlSQLXML (Extension)
    -> com.google.protobuf.Descriptors$FileDescriptor (Extension)
    ...
      -> com.google.protobuf.GeneratedMessageV3 (Extension)
       -> com.google.protobuf.MessageSchema (Extension)
        -> ❌ com.google.protobuf.ArrayDecoders$Registers (Vulnerable Component)

Vulnerability Details

Any project that parses untrusted Protocol Buffers data containing an arbitrary number of nested groups / series of SGROUP tags can corrupted by exceeding the stack limit i.e. StackOverflow. Parsing nested groups as unknown fields with DiscardUnknownFieldsParser or Java Protobuf Lite parser, or against Protobuf map fields, creates unbounded recursions that can be abused by an attacker.

Publish Date: 2024-09-19

URL: CVE-2024-7254

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2024-7254

Release Date: 2024-09-19

Fix Resolution: com.google.protobuf:protobuf-javalite - 3.25.5,4.28.2,4.27.5;com.google.protobuf:protobuf-java - 4.27.5,3.25.5,4.28.2

CVE-2022-3509

Vulnerable Library - protobuf-java-3.11.4.jar

Core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an efficient yet extensible format.

Library home page: https://developers.google.com/protocol-buffers/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/google/protobuf/protobuf-java/3.11.4/protobuf-java-3.11.4.jar

Dependency Hierarchy:

  • mysql-connector-java-8.0.26.jar (Root Library)
    • protobuf-java-3.11.4.jar (Vulnerable Library)

Found in HEAD commit: 21d02aa2a835d033894b1b2e4c4fdadc665ed2b9

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

org.t246osslab.easybuggy4sb.vulnerabilities.XEEandXXEController (Application)
  -> com.mysql.cj.jdbc.MysqlSQLXML$SimpleSaxToReader (Extension)
   -> com.mysql.cj.jdbc.MysqlSQLXML (Extension)
    -> com.mysql.cj.protocol.x.SyncMessageSender (Extension)
    ...
      -> com.google.protobuf.GeneratedMessageV3 (Extension)
       -> com.google.protobuf.MessageReflection (Extension)
        -> ❌ com.google.protobuf.MessageReflection$BuilderAdapter (Vulnerable Component)

Vulnerability Details

A parsing issue similar to CVE-2022-3171, but with textformat in protobuf-java core and lite versions prior to 3.21.7, 3.20.3, 3.19.6 and 3.16.3 can lead to a denial of service attack. Inputs containing multiple instances of non-repeated embedded messages with repeated or unknown fields causes objects to be converted back-n-forth between mutable and immutable forms, resulting in potentially long garbage collection pauses. We recommend updating to the versions mentioned above.

Publish Date: 2022-11-01

URL: CVE-2022-3509

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3509

Release Date: 2022-11-01

Fix Resolution (com.google.protobuf:protobuf-java): 3.16.3

Direct dependency fix Resolution (mysql:mysql-connector-java): 8.0.29

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2021-22569

Vulnerable Library - protobuf-java-3.11.4.jar

Core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an efficient yet extensible format.

Library home page: https://developers.google.com/protocol-buffers/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/google/protobuf/protobuf-java/3.11.4/protobuf-java-3.11.4.jar

Dependency Hierarchy:

  • mysql-connector-java-8.0.26.jar (Root Library)
    • protobuf-java-3.11.4.jar (Vulnerable Library)

Found in HEAD commit: 21d02aa2a835d033894b1b2e4c4fdadc665ed2b9

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

org.t246osslab.easybuggy4sb.vulnerabilities.XEEandXXEController (Application)
  -> com.mysql.cj.jdbc.MysqlSQLXML$SimpleSaxToReader (Extension)
   -> com.mysql.cj.jdbc.MysqlSQLXML (Extension)
    -> com.mysql.cj.conf.RuntimeProperty (Extension)
    ...
      -> com.mysql.cj.protocol.x.StatementExecuteOkBuilder (Extension)
       -> com.mysql.cj.x.protobuf.MysqlxDatatypes$Scalar (Extension)
        -> ❌ com.google.protobuf.UnknownFieldSet (Vulnerable Component)

Vulnerability Details

An issue in protobuf-java allowed the interleaving of com.google.protobuf.UnknownFieldSet fields in such a way that would be processed out of order. A small malicious payload can occupy the parser for several minutes by creating large numbers of short-lived objects that cause frequent, repeated pauses. We recommend upgrading libraries beyond the vulnerable versions.

Publish Date: 2022-01-07

URL: CVE-2021-22569

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-wrvw-hg22-4m67

Release Date: 2022-01-07

Fix Resolution (com.google.protobuf:protobuf-java): 3.16.1

Direct dependency fix Resolution (mysql:mysql-connector-java): 8.0.29

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2022-21363

Vulnerable Library - mysql-connector-java-8.0.26.jar

JDBC Type 4 driver for MySQL

Library home page: http://www.oracle.com

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/mysql/mysql-connector-java/8.0.26/mysql-connector-java-8.0.26.jar

Dependency Hierarchy:

  • mysql-connector-java-8.0.26.jar (Vulnerable Library)

Found in HEAD commit: 21d02aa2a835d033894b1b2e4c4fdadc665ed2b9

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

org.t246osslab.easybuggy4sb.vulnerabilities.XEEandXXEController (Application)
  -> com.mysql.cj.jdbc.MysqlSQLXML$SimpleSaxToReader (Extension)
   -> com.mysql.cj.jdbc.MysqlSQLXML (Extension)
    -> com.mysql.cj.protocol.x.OkBuilder (Extension)
    ...
      -> com.mysql.cj.protocol.x.MessageConstants (Extension)
       -> com.mysql.cj.x.protobuf.MysqlxConnection$Compression (Extension)
        -> ❌ com.mysql.cj.x.protobuf.MysqlxConnection$Compression$1 (Vulnerable Component)

Vulnerability Details

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). Supported versions that are affected are 8.0.27 and prior. Difficult to exploit vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Connectors. Successful attacks of this vulnerability can result in takeover of MySQL Connectors. CVSS 3.1 Base Score 6.6 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H).

Publish Date: 2022-01-19

URL: CVE-2022-21363

CVSS 3 Score Details (6.6)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: High
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-g76j-4cxx-23h9

Release Date: 2022-01-19

Fix Resolution: mysql:mysql-connector-java:8.0.28

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2021-2471

Vulnerable Library - mysql-connector-java-8.0.26.jar

JDBC Type 4 driver for MySQL

Library home page: http://www.oracle.com

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/mysql/mysql-connector-java/8.0.26/mysql-connector-java-8.0.26.jar

Dependency Hierarchy:

  • mysql-connector-java-8.0.26.jar (Vulnerable Library)

Found in HEAD commit: 21d02aa2a835d033894b1b2e4c4fdadc665ed2b9

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

org.t246osslab.easybuggy4sb.vulnerabilities.XEEandXXEController (Application)
  -> com.mysql.cj.jdbc.MysqlSQLXML$SimpleSaxToReader (Extension)
   -> ❌ com.mysql.cj.jdbc.MysqlSQLXML (Vulnerable Component)

Vulnerability Details

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). Supported versions that are affected are 8.0.26 and prior. Difficult to exploit vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Connectors. Successful attacks of this vulnerability can result in unauthorized access to critical data or complete access to all MySQL Connectors accessible data and unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Connectors. CVSS 3.1 Base Score 5.9 (Confidentiality and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:H).

Publish Date: 2021-10-20

URL: CVE-2021-2471

CVSS 3 Score Details (5.9)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: High
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.oracle.com/security-alerts/cpuoct2021.html

Release Date: 2021-10-20

Fix Resolution: 8.0.27

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2022-3171

Vulnerable Library - protobuf-java-3.11.4.jar

Core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an efficient yet extensible format.

Library home page: https://developers.google.com/protocol-buffers/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/google/protobuf/protobuf-java/3.11.4/protobuf-java-3.11.4.jar

Dependency Hierarchy:

  • mysql-connector-java-8.0.26.jar (Root Library)
    • protobuf-java-3.11.4.jar (Vulnerable Library)

Found in HEAD commit: 21d02aa2a835d033894b1b2e4c4fdadc665ed2b9

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

org.t246osslab.easybuggy4sb.vulnerabilities.XEEandXXEController (Application)
  -> com.mysql.cj.jdbc.MysqlSQLXML$SimpleSaxToReader (Extension)
   -> com.mysql.cj.jdbc.MysqlSQLXML (Extension)
    -> com.mysql.cj.protocol.x.SyncMessageSender (Extension)
    ...
      -> com.google.protobuf.GeneratedMessageV3 (Extension)
       -> com.google.protobuf.MessageReflection (Extension)
        -> ❌ com.google.protobuf.MessageReflection$BuilderAdapter (Vulnerable Component)

Vulnerability Details

A parsing issue with binary data in protobuf-java core and lite versions prior to 3.21.7, 3.20.3, 3.19.6 and 3.16.3 can lead to a denial of service attack. Inputs containing multiple instances of non-repeated embedded messages with repeated or unknown fields causes objects to be converted back-n-forth between mutable and immutable forms, resulting in potentially long garbage collection pauses. We recommend updating to the versions mentioned above.

Publish Date: 2022-10-12

URL: CVE-2022-3171

CVSS 3 Score Details (4.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Adjacent
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-h4h5-3hr4-j3g2

Release Date: 2022-10-12

Fix Resolution (com.google.protobuf:protobuf-java): 3.16.3

Direct dependency fix Resolution (mysql:mysql-connector-java): 8.0.29

⛑️ Automatic Remediation will be attempted for this issue.


⛑️Automatic Remediation will be attempted for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend
Projects
None yet
Development

No branches or pull requests

0 participants