Miggo Logo

CVE-2022-21363: Improper Handling of Insufficient Permissions or Privileges in MySQL Connectors Java

6.6

CVSS Score
3.1

Basic Information

EPSS Score
0.50965%
Published
1/20/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
mysql:mysql-connector-javamaven<= 8.0.278.0.28

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from improper query classification for read-only connections. Key changes include:

  1. ClientPreparedStatement's safety check moving from simple first character inspection to proper query type analysis
  2. Enhanced query parsing logic in ParseInfo with new QueryReturnType enum
  3. 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

Vuln*r**ility in t** MySQL *onn**tors pro*u*t o* Or**l* MySQL (*ompon*nt: *onn**tor/J). Support** v*rsions t**t *r* *****t** *r* *.*.** *n* prior. *i**i*ult to *xploit vuln*r**ility *llows *i** privil**** *tt**k*r wit* n*twork ****ss vi* multipl* pro

Reasoning

T** vuln*r**ility st*mm** *rom improp*r qu*ry *l*ssi*i**tion *or r***-only *onn**tions. K*y ***n**s in*lu**: *. *li*ntPr*p*r**St*t*m*nt's s***ty ****k movin* *rom simpl* *irst ***r**t*r insp**tion to prop*r qu*ry typ* *n*lysis *. *n**n*** qu*ry p*rsi