Description
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.
Published: 2026-10-29
Score: 5.9 Medium
EPSS: n/a
KEV: No
Impact: Validation Bypass
Action: Apply Patch
AI Analysis

Impact

The vulnerability in MariaDB Connector/J allows a server to change the setting of character_set_results to a non‑UTF‑8 value without the client being aware. The connector assumes that returned bytes are UTF‑8 when decoding query results, but it does not enforce this assumption or reject changes to character_set_results. If the charset is changed, the application may interpret the bytes as UTF‑8 while the actual bytes represent a different encoding, causing out‑of‑sync decoding. This mismatch can lead the application to accept or reject data based on a decoded value that does not match the underlying bytes, thereby enabling validation or escaping bypass for checks that depend on the decoded string.

Affected Systems

The flaw affects MariaDB Connector/J versions from 3.0.0 up to, but not including, 3.3.7, 3.4.5, and 3.5.11. These connectors are used by Java applications that interact with MariaDB or MySQL databases. Applications using a connector within this range may be vulnerable.

Risk and Exploitability

The CVSS score of 5.9 indicates moderate severity. The EPSS score is not disclosed, and the vulnerability is not listed in the CISA KEV catalog. Attackers may achieve exploitation by controlling the database server or by performing a man‑in‑the‑middle attack to alter result character sets. Such an attacker can cause an application to misinterpret data, potentially leading to logic bypass or validation failures. The exploit requires an attacker to affect the character set configuration on a server the application trusts.

Generated by OpenCVE AI on October 29, 2026 at 23:12 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MariaDB Connector/J to a fixed release such as 3.3.7, 3.4.5, or 3.5.11 (or newer) to enforce UTF‑8 decoding for results.
  • Secure the database connection with TLS/SSL to mitigate man‑in‑the‑middle manipulation of server configuration or traffic.
  • Configure the database server to enforce character_set_results to UTF‑8 and enable session tracking so that any unexpected changes are reported or rejected.

Generated by OpenCVE AI on October 29, 2026 at 23:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 29 Oct 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Mariadb
Mariadb mariadb-connector-j
Mariadb-corporation
Mariadb-corporation mariadb-connector-j
Vendors & Products Mariadb
Mariadb mariadb-connector-j
Mariadb-corporation
Mariadb-corporation mariadb-connector-j

Thu, 29 Oct 2026 21:15:00 +0000

Type Values Removed Values Added
Description 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.
Title MariaDB Connector/J: Server could switch character_set_results away from UTF-8 without the client noticing
Weaknesses CWE-838
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N'}


Subscriptions

Mariadb Mariadb-connector-j
Mariadb-corporation Mariadb-connector-j
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-29T20:58:39.322Z

Reserved: 2026-10-29T18:50:28.064Z

Link: CVE-2026-119281

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-29T21:17:21.710

Modified: 2026-10-29T21:17:21.710

Link: CVE-2026-119281

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T23:15:05Z

Weaknesses
  • CWE-838

    Inappropriate Encoding for Output Context