Skip to main content

MariaDB Connector/J EUVDEUVD-2026-113388

| CVE-2026-119281 MEDIUM
Inappropriate Encoding for Output Context (CWE-838)
2026-10-29 security-advisories@github.com GHSA-grfq-r75j-rw9x
5.9
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain MitM position or control/compromise DB server
  2. Delivery
    Suppress charset session tracking or set character_set_results to non-UTF-8
  3. Exploit
    Driver decodes result bytes as UTF-8 incorrectly
  4. Execution
    Decoded strings diverge from actual bytes
  5. Impact
    Bypass 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

mariadb-connector-j 3.5.0, < 3.5.11
mariadb-connector-j 3.0.0, < 3.3.7
mariadb-connector-j 3.4.0, < 3.4.5

Affected Packages

maven org.mariadb.jdbc:mariadb-java-client fix: 3.3.7, 3.4.5, 3.5.11
euvd mariadb_connector_j fix: 3.3.7, 3.4.5, 3.5.11

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

Vendor (github) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 5.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 5.9 MEDIUM

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

1
Patch available
Oct 29, 2026 - 22:03 EUVD

DescriptionCVE.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

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
widely-used Java JDBC driver, but a specific library, not ubiquitous infrastructure
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

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

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy