Skip to main content
EPSS 0.5%top 60%

CVE-2026-55859: CWE-116: Improper Encoding or Escaping of Output in mariadb-corporation mariadb-connector-r2dbc

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

Description

MariaDB Connector/R2DBC versions prior to 1.4.1 improperly handle mid-session changes to the character_set_client encoding when it is changed from UTF-8 to another character set. This causes a mismatch between client and server character encoding, leading to silent data corruption and potential bypass of byte-wise quoting or escaping. The issue is fixed in version 1.4.1 by restricting accepted character sets to utf8, utf8mb3, or utf8mb4 after initialization, closing the connection otherwise.

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-r2dbc

Affected versions
<1.4.1

org.mariadb

r2dbc-mariadb

Affected versions
<1.4.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 15:23:37 UTC

Technical Analysis

MariaDB Connector/R2DBC, a Java non-blocking client for MariaDB and MySQL, assumed UTF-8 encoding for all character data prior to version 1.4.1. However, a server can change the character_set_client mid-session via session-state-tracking mechanisms such as SET NAMES in stored routines or triggers. If the new character set is not UTF-8, the driver continues to encode/decode as UTF-8 while the server interprets bytes differently, causing silent data corruption and charset confusion. This mismatch can defeat byte-wise quoting or escaping, leading to improper encoding or escaping of output (CWE-116). The fix in version 1.4.1 enforces acceptance of only utf8, utf8mb3, or utf8mb4 character sets after initialization, raising an exception and closing the connection if others are encountered.

Potential Impact

The vulnerability can cause silent data corruption due to mismatched character encoding between client and server. This charset confusion can defeat byte-wise quoting or escaping mechanisms, potentially leading to injection or data integrity issues. There is no direct confidentiality or availability impact reported. Exploitation requires a server to change the character_set_client mid-session to a non-UTF-8 encoding, which may be possible via stored routines, triggers, server configuration, or a hostile/man-in-the-middle server.

Mitigation Recommendations

Upgrade to MariaDB Connector/R2DBC version 1.4.1 or later, which enforces acceptance of only utf8, utf8mb3, or utf8mb4 character sets after initialization and closes connections if others are encountered. No other mitigations are indicated. Patch status is not explicitly stated but the fix is included in version 1.4.1.

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: 6a9214baacd9273b4972713b

Added to database: 08/28/2026, 23:07:38 UTC

Last enriched: 09/07/2026, 15:23:37 UTC

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

Views: 100

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