CVE-2022-21363: Improper Handling of Insufficient Permissions or Privileges in MySQL Connectors Java
6.6
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.50965%
CWE
Published
1/20/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
mysql:mysql-connector-java | maven | <= 8.0.27 | 8.0.28 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from improper query classification for read-only connections. Key changes include:
- ClientPreparedStatement's safety check moving from simple first character inspection to proper query type analysis
- Enhanced query parsing logic in ParseInfo with new QueryReturnType enum
- Replacement of string parsing utilities with more robust StringInspector These changes indicate the previous implementations had insufficient security checks that could be bypassed through query structure manipulation or comment exploitation.