CVE-2026-55858
MariaDB Connector/J: Inappropriate Encoding for Output Context in org.mariadb.jdbc:mariadb-java-client
Check your servers for CVE-2026-55858
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-55858 affects mariadb-connector-j, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.53%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 46.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Sep 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-838 Inappropriate Encoding for Output Context
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| mariadb-connector-j |
affected < 2.7.14 affected >= 3.0.0-alpha, < 3.3.5 affected >= 3.4.0, < 3.4.3 affected >= 3.5.0, < 3.5.9
|
Is my server affected?
Find the installed version of mariadb-connector-j and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i mariadb-connector-j
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-55858 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-55858RHEL, Rocky, Alma, Fedora
rpm -q mariadb-connector-j
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-55858Alpine
apk list --installed | grep -i mariadb-connector-jWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-55858
trivy image --scanners vuln IMAGE | grep CVE-2026-55858
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-xvr9-35cr-46v9 github.com
Other references
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/300716bef1e1d0370a41be7863b88aa2d55fbb69 github.com
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/7b3c69221b5463ee03472654040b3f6b9e5329c7 github.com
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/8cfd9df697372ad4ed09fe87a34b34babb6d43d6 github.com
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/c555c9b477521be0c35c3a5461f9f46681553607 github.com
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/2.7.14 github.com
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.5 github.com
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.3 github.com
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.9 github.com
- https://jira.mariadb.org/browse/CONJ-1317 jira.mariadb.org
Source: the record CVE-2026-55858 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse