CVE-2026-55858MariaDB Connector/J: Inappropriate Encoding for Output Context in…
MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases. Prior to 2.7.14, 3.3.5, 3.4.3, and 3.5.9, the connector encodes and decodes protocol text and performs client-side escaping under the assumption that the connection character set is UTF-8. The server can report a mid-session change to character_set_client through OK-packet session-state tracking, including a change caused by SET NAMES, a stored routine or trigger, server configuration, or a hostile server. If character_set_client changes to a non-UTF-8 value, the driver continues to read and write UTF-8 while the server interprets the same bytes under another encoding, causing silent data corruption and a client/server charset-confusion mismatch that can defeat byte-wise quoting or escaping. The fix accepts only utf8, utf8mb3, or utf8mb4 after initialization; any other value causes SQLException with SQLState 08000 and closes the connection. This issue is fixed in versions 2.7.14, 3.3.5, 3.4.3, and 3.5.9.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Red Hat has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | grafana | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 10 | mariadb-java-client | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | nodejs | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs-docs | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs-full-i18n | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs-npm | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs22 | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs24 | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs24-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs24-docs | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs24-full-i18n | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs24-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs24-npm | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs26 | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs26-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs26-docs | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs26-full-i18n | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs26-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs26-npm | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | mariadb-java-client | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | nodejs | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-docs | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | npm | Not affected | ||
| Red Hat Enterprise Linux 8 | Judy | Not affected | ||
| Red Hat Enterprise Linux 8 | galera | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-backup | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-common | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-embedded | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-embedded-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-errmsg | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-gssapi-server | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-oqgraph-engine | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-pam | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-server | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-server-galera | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-server-utils | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-test | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Not affected | ||
| Maven library | org.mariadb.jdbc:mariadb-java-client | Fixed | 3.5.9 | GHSA-xvr9-35cr-46v9 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- mariadb-corporation mariadb-connector-j: affected: < 2.7.14, >= 3.0.0-alpha, < 3.3.5, >= 3.4.0, < 3.4.3, >= 3.5.0, < 3.5.9
References
- https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-xvr9-35cr-46v9
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/300716bef1e1d0370a41be7863b88aa2d55fbb69
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/7b3c69221b5463ee03472654040b3f6b9e5329c7
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/8cfd9df697372ad4ed09fe87a34b34babb6d43d6
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/c555c9b477521be0c35c3a5461f9f46681553607
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/2.7.14
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.5
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.3
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.9
- https://jira.mariadb.org/browse/CONJ-1317
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.