Vulnerabilities in pkg:maven/mysql/mysql-connector-java
PACKAGECVE-2023-22102 is a HIGH (CVSS 8.3) mysql connectors takeover vulnerability vulnerability (General Security Weakness) affecting Mysql connector j libraries in the Maven ecosystem. The issue involves mysql connectors takeover vulnerability. Remediation is available by upgrading affected packages to version 8.2.0.
pkg:maven/mysql/mysql-connector-java
Vulnerability advisories affecting package pkg:maven/mysql/mysql-connector-java. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-m6vm-37g8-gqvh | CVE-2023-22102 | HIGH | MySQL Connectors takeover vulnerability |
| GHSA-gc43-g62c-99g2 | CVE-2015-2575 | MODERATE | Improper Access Control in MySQL Connectors Java |
| GHSA-2xxh-f8r3-hvvr | CVE-2017-3523 | HIGH | Improper Access Control in MySQL Connectors Java |
| GHSA-pwh7-92h3-mqr6 | CVE-2017-3586 | MODERATE | Exposure of Sensitive Information to an Unauthorized Actor in Oracle MySQL Connectors Java |
| GHSA-cjcf-wm2p-59h5 | CVE-2017-3589 | LOW | Exposure of Sensitive Information to an Unauthorized Actor in Oracle MySQL Connectors Java |
| GHSA-4vrv-ch96-6h42 | CVE-2018-3258 | HIGH | Improper Privilege Management in MySQL Connectors Java |
| GHSA-w6f2-8wx4-47r5 | CVE-2021-2471 | MODERATE | Incorrect Authorization in MySQL Connector Java |
| GHSA-g76j-4cxx-23h9 | CVE-2022-21363 | MODERATE | Improper Handling of Insufficient Permissions or Privileges in MySQL Connectors Java |
| GHSA-jcq3-cprp-m333 | CVE-2019-2692 | MODERATE | Privilege escalation in mysql-connector-jav |
CVE-2023-22102 at a Glance
Security Impact
CVSS: 8.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H).
How to Fix CVE-2023-22102
To remediate this vulnerability, upgrade all affected Mysql connector j dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.2.0</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.mysql
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2023-22102, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.mysql
Analyze the terminal output to locate any version of Mysql connector j in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.2.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.mysql command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Mysql connector j, 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-22102 Affected Mysql connector j Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.mysql:mysql-connector-j
|
Maven |
< 8.2.0
|
8.2.0
|
|
mysql:mysql-connector-java
|
Maven |
≤ 8.0.33
|
|
References
Frequently Asked Questions
What is CVE-2023-22102?
Which Mysql connector j versions are affected?
What version fixes CVE-2023-22102?
Is mysql-connector-j affected?
Is mysql-connector-java affected?
What is the CVSS score of CVE-2023-22102?
What CWE is associated with CVE-2023-22102?
How can I check Maven dependencies for CVE-2023-22102?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m6vm-37g8-gqvh",
"modified" : "2024-12-05T15:46:43Z",
"published" : "2023-10-18T00:31:42Z",
"aliases" : [ "CVE-2023-22102" ],
"summary" : "MySQL Connectors takeover 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.mysql:mysql-connector-j"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.2.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "mysql:mysql-connector-java"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "8.0.33"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-22102"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mysql/mysql-connector-j"
}, {
"type" : "WEB",
"url" : "https://github.com/mysql/mysql-connector-j/compare/8.1.0...8.2.0"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20231027-0007"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuoct2023.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-08-29T18:32:05Z",
"nvd_published_at" : "2023-10-17T22:15:15Z"
}
}