CVE-2018-3258: Improper Privilege Management in MySQL Connectors Java

mysql:mysql-connector-java Updated 02 Oct 2025

Summary

13/05/2022
Yes i
High
8.8

CVE-2018-3258: Improper Privilege Management in MySQL Connectors Java. Affects mysql:mysql-connector-java versions < 8.0.13. Fixed in 8.0.13. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

MySQL Connectors is a component of Oracle MySQL that provides Java-based connectivity to MySQL databases. It allows applications written in Java to interact with MySQL databases by providing a set of APIs and drivers. The MySQL Connector/J is the official JDBC driver for MySQL. It enables Java applications to connect to MySQL databases and perform various database operations. However, versions 8.0.12 and prior of MySQL Connectors Java are vulnerable to an improper privilege management issue.

Vulnerability Detail

The vulnerability in MySQL Connectors Java allows a low privileged attacker with network access via multiple protocols to compromise the MySQL Connectors component. This vulnerability is easily exploitable and can lead to a complete takeover of MySQL Connectors. The impact of a successful attack includes confidentiality, integrity, and availability breaches. The Common Vulnerability Scoring System (CVSS) 3.0 Base Score for this vulnerability is 8.8, indicating a high severity level.

How To Fix

Minimum fixed version

8.0.13

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The vulnerability in MySQL Connectors Java (CVE-2018-3258) allows a low privileged attacker to compromise the component, potentially leading to a complete takeover. To mitigate this vulnerability, it is crucial to upgrade to version 8.0.13 or later of the MySQL Connector/J library. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for mysql:mysql-connector-java →

Share this vulnerability

FAQ

MySQL Connectors Java is a component of Oracle MySQL that provides Java-based connectivity to MySQL databases. It allows Java applications to interact with MySQL databases by providing APIs and drivers.

The vulnerability allows a low privileged attacker to compromise MySQL Connectors Java, potentially leading to a complete takeover of the component. This can result in confidentiality, integrity, and availability breaches.

To fix this vulnerability, you should upgrade to version 8.0.13 or later of the MySQL Connector/J library in your Java application.

No, there is no known workaround for this vulnerability. It is recommended to upgrade to the patched version of the MySQL Connector/J library.

The CVSS 3.0 Base Score for this vulnerability is 8.8, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for mysql:mysql-connector-java.

How To Fix

Minimum fixed version

8.0.13

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback