Skip to main content
EPSS 0.9%top 42%

CVE-2026-55858: CWE-838: Inappropriate Encoding for Output Context in mariadb-corporation mariadb-connector-j

0
Medium
Published: 08/28/2026 (08/28/2026, 22:46:40 UTC)
Source: CVE Database V5
Vendor/Project: mariadb-corporation
Product: mariadb-connector-j

Description

MariaDB Connector/J versions prior to 2.7.14, 3.3.5, 3.4.3, and 3.5.9 have a vulnerability where the connector incorrectly assumes the connection character set is UTF-8 throughout the session. If the server changes the character_set_client to a non-UTF-8 encoding mid-session, the driver continues to encode/decode as UTF-8, causing silent data corruption and charset confusion. This can defeat client-side escaping and quoting mechanisms. The issue is fixed by restricting allowed character sets after initialization to utf8, utf8mb3, or utf8mb4, with other values causing the connection to close with an error.

CVSS v3.1

Score 5.9medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected software

mariadb-corporation

mariadb-connector-j

Affected versions
<2.7.14>=3.0.0-alpha <3.3.5>=3.4.0 <3.4.3>=3.5.0 <3.5.9

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 15:13:13 UTC

Technical Analysis

MariaDB Connector/J, used for Java applications connecting to MariaDB and MySQL, improperly handles mid-session changes to the character_set_client when it changes to a non-UTF-8 encoding. The connector continues to encode and decode protocol text as UTF-8, while the server interprets the bytes under a different encoding. This mismatch causes silent data corruption and can bypass client-side escaping, leading to potential injection or data integrity issues. The vulnerability affects versions prior to 2.7.14, 3.3.5, 3.4.3, and 3.5.9. The fix enforces acceptance of only utf8, utf8mb3, or utf8mb4 character sets after initialization, closing connections that attempt to switch to unsupported encodings.

Potential Impact

This vulnerability can cause silent data corruption and charset confusion between client and server, potentially defeating client-side escaping and quoting protections. This may lead to injection risks or data integrity issues in applications using affected versions of MariaDB Connector/J. There is no impact on confidentiality or availability reported. No known exploits in the wild have been reported.

Mitigation Recommendations

A fix is available in MariaDB Connector/J versions 2.7.14, 3.3.5, 3.4.3, and 3.5.9. Users should upgrade to one of these versions or later to mitigate this issue. No other mitigation is indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-17T16:44:40.995Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a92113dacd9273b496f46ab

Added to database: 08/28/2026, 22:52:45 UTC

Last enriched: 09/07/2026, 15:13:13 UTC

Last updated: 10/12/2026, 06:48:17 UTC

Views: 118

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses