Every CVE Search/ Get API key

CVE-2023-21971

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). ...

5.3 MediumPublic exploitFix available

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). Supported versions that are affected are 8.0.32 and prior. Difficult to exploit vulnerability allows high privileged attacker with network access via multiple protocols 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 ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Connectors as well as unauthorized update, insert or delete access to some of MySQL Connectors accessible data and unauthorized read access to a subset of MySQL Connectors accessible data. CVSS 3.1 Base Score 5.3 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H).

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
High
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
High

Exploit likelihood

1.48%Up 1.4 points since Apr 19, 2023
90%50%10%1%

What each source reports

CVE List Score used 5.3

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). Supported versions that are affected are 8.0.32 and prior. Difficult to exploit vulnerability allows high privileged attacker with network access via multiple protocols 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 ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Connectors as well as unauthorized update, insert or delete access to some of MySQL Connectors accessible data and unauthorized read access to a subset of MySQL Connectors accessible data. CVSS 3.1 Base Score 5.3 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H).

Record
CVE-2023-21971
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H
Updated
2026-11-02
EUVDEUVD-2023-26136 5.3

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). Supported versions that are affected are 8.0.32 and prior. Difficult to exploit vulnerability allows high privileged attacker with network access via multiple protocols 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 ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Connectors as well as unauthorized update, insert or delete access to some of MySQL Connectors accessible data and unauthorized read access to a subset of MySQL Connectors accessible data. CVSS 3.1 Base Score 5.3 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H).

Record
EUVD-2023-26136
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-8273-q4gg-6jm9 5.3

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). ...

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). Supported versions that are affected are 8.0.32 and prior. Difficult to exploit vulnerability allows high privileged attacker with network access via multiple protocols 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 ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Connectors as well as unauthorized update, insert or delete access to some of MySQL Connectors accessible data and unauthorized read access to a subset of MySQL Connectors accessible data. CVSS 3.1 Base Score 5.3 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H).

Record
GHSA-8273-q4gg-6jm9
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H
Updated
2026-11-02
NVD 5.3

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). Supported versions that are affected are 8.0.32 and prior. Difficult to exploit vulnerability allows high privileged attacker with network access via multiple protocols 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 ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Connectors as well as unauthorized update, insert or delete access to some of MySQL Connectors accessible data and unauthorized read access to a subset of MySQL Connectors accessible data. CVSS 3.1 Base Score 5.3 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H).

Record
CVE-2023-21971
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2023-21971 5.3

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). Supported versions that are affected are 8.0.32 and prior. Difficult to exploit vulnerability allows high privileged attacker with network access via multiple protocols 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 ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Connectors as well as unauthorized update, insert or delete access to some of MySQL Connectors accessible data and unauthorized read access to a subset of MySQL Connectors accessible data. CVSS 3.1 Base Score 5.3 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H).

Record
UBUNTU-CVE-2023-21971
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H
Updated
2026-11-02
OSVopenSUSE-SU-2024:12927-1 No score

mysql-connector-java-8.0.33-2.1 on GA media

These are all security issues fixed in the mysql-connector-java-8.0.33-2.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:12927-1
Updated
2026-11-02
OSVSUSE-SU-2023:2241-1 No score

Security update for mysql-connector-java

This update for mysql-connector-java fixes the following issues:

  • CVE-2023-21971: Fixed a crash in MySQL Connectors that could be triggered by an authenticated remote user (bsc#1211247).

  • Ship protobuf 3.9.2 compatible generated files to support older distro versions.

  • Update to 8.0.32:

    • MysqlDataSource fails to URL encode database name when constructing JDBC URL.
    • serverSideStatementCache ignores resultSetType.
    • UpdatableResultSet does not properly handle unsigned primary key.
    • Connector/J 8 query with explain can not return ResultRow.
    • Add support to row alias on INSERT... ON DUPLICATE KEY UPDATE on batch mode.
    • connectionCollation ignored if characterEncoding is set.
    • Connector/J rejects UNION with CTE.
    • Malformed packet generation for COM_STMT_EXECUTE.
    • Connector/J client hangs after prepare & execute process with old version server.
    • Contribution: Fix name of relocation POM file.
    • Contribution: [PATCH] Remove superfluous use of boxing.
    • Contribution: Recognize 'ON DUPLICATE KEY UPDATE' in 'INSERT SET' Statement.
    • RPM and DEB builds broken after introducing javadoc for maven bundles.
    • Sonatype compliant POM and maven bundles.
    • Upgrade 3rd party libraries and tools.
    • Upgrade Protocol Buffers dependency to protobuf-java-3.21.9.
  • As Oracle renamed the package to 'mysql-connector-j', we are 'providing' both names for now, but the package has to be renamed to accommodate the change because the old name will be deprecated at some point in the future without further notice.

  • Update to 8.0.31:

    Functionality Added or Changed

    • Important Change: To comply with proper naming guidelines, the Maven groupId and artifactId for Connector/J have been changed to the following starting with this release: groupId: com.mysql artifactId: mysql-connector-j
    • The old groupId and artifactId can still be used for linking the Connector/J library, but they will point to a Maven relocation POM, redirecting users to the new coordinates. Please switch to the new coordinates as soon as possible, as the old coordinates could be discontinued anytime without notice. See Installing Connector/J Using Maven.
    • Also, to go with these changes, the .jar library for Connector/J has been renamed to mysql-connector-j-x.y.z for all channels of distribution by Oracle, not just the Maven repository.
    • Before release 8.0.29, Connector/J always interpolated byte arrays as hexadecimal literals when obtaining a prepared statement's string representation by the toString() method. Since 8.0.29, all byte array values were displayed as ** BYTE ARRAY DATA ** when converted to strings. The same is also true for null values.
    • To allow different ways to display byte array data and null values, a new connection property, maxByteArrayAsHex, has been introduced: byte arrays shorter than the value of maxByteArrayAsHex are now shown as hexadecimal literals like before release 8.0.29. Any byte arrays longer than this value are interpolated generically as ** BYTE ARRAY DATA **.

    Bugs Fixed

    • X DevAPI: When parsing a string into a JSON string, some escape character sequences were not parsed properly, causing the Server to throw a com.mysql.cj.exceptions.WrongArgumentException when receiving the JSON value. This fix ensures that escape sequences are handled properly.
    • X DevAPI: When using the modify() method on JSON documents, any backslashes inside a literal to be used for the modification were lost. This fix corrects the mistakes in the expression parser that caused the issue.
    • Executing a PreparedStatment after applying setFetchSize(0) on it caused an ArrayIndexOutOfBoundsException.
    • Due to some old limitations, when used with Java applets, Connector/J found…
Record
SUSE-SU-2023:2241-1
Updated
2026-11-02
OSVSUSE-SU-2023:2979-1 No score

Security update for mysql-connector-java

This update for mysql-connector-java fixes the following issues:

  • CVE-2023-21971: Fixed a denial-of-service vulnerability in the java.sql.DriverManager.getConnection() method when used with untrusted inputs (bsc#1211247).
Record
SUSE-SU-2023:2979-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
mysql-connector-java
openSUSE:Leap 15.4
before 8.0.32-150200.3.15.1
8.0.32-150200.3.15.1
mysql-connector-java
openSUSE:Leap 15.4
before 8.0.33-150200.3.18.1
8.0.33-150200.3.18.1
mysql-connector-java
openSUSE:Leap 15.5
before 8.0.33-150200.3.18.1
8.0.33-150200.3.18.1
mysql-connector-java
Ubuntu:14.04:LTS
All versions, plus listed versions
5.1.25-15.1.26-15.1.27-15.1.28-1
None known
mysql-connector-java
Ubuntu:16.04:LTS
All versions, plus listed versions
5.1.32-15.1.38-1
None known
mysql-connector-java
Ubuntu:18.04:LTS
All versions, plus listed versions
5.1.42-15.1.44-15.1.45-1
None known
mysql-connector-java
openSUSE:Tumbleweed
before 8.0.33-2.1
8.0.33-2.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubAvento/CVE-2023-21971_Analysis2023-06-08

History

History
RecordedChangedSources
aliases, publishedEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2023-21971 is a medium vulnerability (CVSS 5.3) in Oracle Mysql Connectors, published April 18, 2023. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 1.48%, the 74th percentile. Fixed in mysql-connector-java 8.0.32-150200.3.15.1.

References

Show 6 moreShow less
This page doesn't list everything

Left out here: the rest of 1 source description. The JSON record has them.

MoveEnter Open