Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain MitM position or control/compromise DB server
-
DeliverySuppress charset session tracking or set character_set_results to non-UTF-8
-
ExploitDriver decodes result bytes as UTF-8 incorrectly
-
ExecutionDecoded strings diverge from actual bytes
-
ImpactBypass application validation/escaping on those values
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V1 - Encoding and Sanitization Inappropriate encoding method
|
| Exploitation Conditions | Exploitation requires the attacker to control the server side of the connection - a malicious, compromised, or impersonated MariaDB/MySQL server - or a machine-in-the-middle position on the client-server link. The specific trigger is suppressing server-side session tracking of the character-set variables (via the global session_track_system_variables configuration) and/or switching character_set_results to a non-UTF-8 charset, which the vulnerable driver (3.0.0 up to 3.3.7 / 3.4.5 / 3.5.11) failed to reject even though it already rejected character_set_client changes. Impact is realized ONLY when the application relies on the decoded string values for validation or escaping; a MitM is limited by transport encryption (TLS with proper server verification removes the in-path vector, leaving only a genuinely compromised/malicious server). No end-user interaction is required and no driver-side authentication is needed, but the attacker-privileged position is the real limiting factor. |
| Impact | This is a genuine but conditional integrity flaw, not a high-CVSS-but-inflated issue; the CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N, 5.9 Medium) is internally consistent with the advisory. AV:N and PR:N reflect that no driver-side authentication is needed, but AC:H correctly captures the real gating factor: the attacker must already control the server side of the connection (a malicious, compromised, or impersonated MariaDB/MySQL server) or hold a machine-in-the-middle position - this is explicitly stated in the GHSA advisory ('Exploitation requires control of the server side of the connection'), so AC:H here reflects an attacker-privileged position, not a race or timing condition. There is NO EPSS score, NO CISA KEV listing, and NO public exploit or PoC reference in the input (only fix commits, release tags, and the advisory). The vuln.today Decision label is 'this_month' (not act_now/emergency), consistent with a medium-severity integrity issue with no confirmed exploitation. The impact is bounded: integrity only (C:N, A:N), and only matters where the application's downstream validation or escaping depends on the decoded string values. Net: a real supply-chain/transport-trust issue worth patching on a normal cycle, not an emergency, with no evidence of widespread or active exploitation. |
| Exploit ScenarioDerived | An attacker who controls or impersonates the database server (or sits in-path as a MitM on a non-TLS or stripped connection) either suppresses session tracking of character-set variables or switches character_set_results to a non-UTF-8 charset. The Java application then decodes the returned bytes as UTF-8, so the strings it sees differ from the bytes the server sent, defeating input validation or output escaping built on those decoded values (e.g. enabling injection downstream). No public exploit code is identified in the input, and exploitation requires the attacker to already hold a privileged server-side or in-path position. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 29, 2026
MariaDB Connector/J 3.0.0 through 3.3.6, 3.4.0 through 3.4.4, and 3.5.0 through 3.5.10 can decode result bytes as UTF-8 even after a malicious or compromised server-or a machine-in-the-middle-suppresses session tracking or changes character_set_results to a non-UTF-8 charset, allowing returned strings to differ from the bytes and potentially defeating application-side validation or escaping. The flaw is an integrity-only issue (CVSS 3.1 5.9, AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N) that requires control of the server side of the connection; no public exploit was identified at time of analysis, and fixed releases are 3.3.7, 3.4.5, and 3.5.11.
RemediationAI
Upgrade to the fixed release for your branch: 3.3.7, 3.4.5, or 3.5.11. The vendor advisory is at https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-grfq-r75j-rw9x, and the release tags are https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7, https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5, and https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.11. The fix makes the driver request an explicit session tracking list that includes both character_set_client and character_set_results, and closes the connection when character_set_results is changed to a charset other than utf8, utf8mb3, or utf8mb4. If upgrading cannot be done immediately, enforce TLS with proper server certificate verification to remove the machine-in-the-middle path; this does not mitigate a malicious or compromised server, which is the other exploitation prerequisite, and no driver-side configuration workaround beyond upgrading is described by the vendor.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MariaDB Connector/J is a JDBC driver that decodes all server results as UTF-8. Before the fix, the driver guarded changes to character_set_client but did not guard character_set_results, and it relied on the server's global session_track_system_variables setting to learn about session charset changes at all. A server configured-or manipulated-not to track the charset variables could silently change character_set_results to a non-UTF-8 charset, after which the driver still interpreted the returned bytes as UTF-8. This is CWE-838 (Inappropriate Encoding for Output Context): the application receives strings whose decoded values do not match the bytes the server returned, so validation or escaping built on those strings can be bypassed. The fix adds an explicit session tracking list that includes both charset variables regardless of the server's global setting and closes the connection when character_set_results is changed to anything other than utf8, utf8mb3, or utf8mb4. Exploitation requires a malicious or compromised server, or a machine-in-the-middle position; it is not a driver-side authentication bypass.
Know when Java gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
AC:H because the attacker must control or impersonate the server or hold a MitM position; PR:N as no driver-side auth is needed; integrity-only impact (I:H, C:N, A:N) per the advisory.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases. From 3.0.0 until 3.3.7, 3.4.5, and 3.5.11, the connector assumed result bytes were UTF-8 but guarded only changes to character_set_client. It did not reject non-UTF-8 character_set_results changes and relied on the server's global session_track_system_variables configuration to report character-set changes. A malicious or compromised server, or a machine-in-the-middle attacker, could suppress tracking or change the result charset so application strings differed from the returned bytes, potentially defeating application-side validation or escaping that depended on the decoded values. This issue is fixed in versions 3.3.7, 3.4.5, and 3.5.11.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-113388
GHSA-grfq-r75j-rw9x
NVD
CVE.org
EPSS
Exploit-DB