{"answers":{"affected":"8 open source packages ship an affected version, including org.mariadb.jdbc:mariadb-java-client.","exploited":"There is no known exploitation of CVE-2026-55858 in the wild and no public exploit code.","fix":"Upgrade org.mariadb.jdbc:mariadb-java-client to a fixed version for your release line: 2.7.14, 3.3.5, 3.4.3 or 3.5.9.","what":"CVE-2026-55858 is a medium-severity SQL injection vulnerability in mariadb-corporation mariadb-connector-j, published on 28 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-55858 and fix it if it is affected.\n\nWhat it is: CVE-2026-55858 is a medium-severity SQL injection vulnerability in mariadb-corporation mariadb-connector-j, published on 28 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-55858 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.mariadb.jdbc:mariadb-java-client (Maven): affected all versions; fixed in 2.7.14\n- org.mariadb.jdbc:mariadb-java-client (Maven): affected all versions; fixed in 2.7.14\n- org.mariadb.jdbc:mariadb-java-client (Maven): affected from 3.0.0; fixed in 3.3.5\n- org.mariadb.jdbc:mariadb-java-client (Maven): affected from 3.0.0; fixed in 3.3.5\n- org.mariadb.jdbc:mariadb-java-client (Maven): affected from 3.4.0; fixed in 3.4.3\n- org.mariadb.jdbc:mariadb-java-client (Maven): affected from 3.4.0; fixed in 3.4.3\n- org.mariadb.jdbc:mariadb-java-client (Maven): affected from 3.5.0; fixed in 3.5.9\n- org.mariadb.jdbc:mariadb-java-client (Maven): affected from 3.5.0; fixed in 3.5.9\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-55858/ (Markdown: https://insights.sbomify.com/CVE-2026-55858/index.md)","id":"CVE-2026-55858","markdown":"https://insights.sbomify.com/CVE-2026-55858/index.md","name":"CVE-2026-55858","record":{"aliases":["CLEANSTART-2026-GM04260","CLEANSTART-2026-JW77744","CLEANSTART-2026-KS34405","CLEANSTART-2026-VV64101","ECHO-2abe-4d67-0f4b","GHSA-xvr9-35cr-46v9","MINI-3cwr-3p22-cr7j","MINI-6g5g-665j-6xx3","MINI-8rjr-p5pq-w5gc","MINI-92cr-32hp-x55r","MINI-ff4p-w6cm-8cpq","MINI-jh75-266w-w998","MINI-jj5j-pm4h-585h","MINI-jqgr-hqx6-mmw6","MINI-pp4p-rmxw-c2jr","MINI-q552-m4r7-vgfw","MINI-qmgh-wj7v-78p8","MINI-rhf4-267r-87m5","MINI-rjhx-jx65-6cpq","MINI-vm53-pff9-58vc","MINI-xcwg-58g8-ghhc"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"MariaDB JDBC connector","requires_auth":"none","summary":"A character set mismatch in MariaDB Connector/J allows attackers to bypass escaping mechanisms, potentially leading to SQL injection or data corruption.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-838","name":"Inappropriate Encoding for Output Context"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"MariaDB Connector/J: Inappropriate Encoding for Output Context in org.mariadb.jdbc:mariadb-java-client","id":"CVE-2026-55858","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":8,"n_references":10,"next":{"headline":"org.mariadb:r2dbc-mariadb has Inappropriate Encoding for Output Context and Improper Encoding or Escaping of Output","id":"CVE-2026-55859"},"packages":[{"ecosystem":"Maven","fixed":["2.7.14"],"introduced":["0"],"last_affected":[],"package":"org.mariadb.jdbc:mariadb-java-client","purl":null,"source":"GHSA-xvr9-35cr-46v9"},{"ecosystem":"Maven","fixed":["2.7.14"],"introduced":["0"],"last_affected":[],"package":"org.mariadb.jdbc:mariadb-java-client","purl":"pkg:maven/org.mariadb.jdbc/mariadb-java-client","source":"GHSA-xvr9-35cr-46v9"},{"ecosystem":"Maven","fixed":["3.3.5"],"introduced":["3.0.0"],"last_affected":[],"package":"org.mariadb.jdbc:mariadb-java-client","purl":null,"source":"GHSA-xvr9-35cr-46v9"},{"ecosystem":"Maven","fixed":["3.3.5"],"introduced":["3.0.0"],"last_affected":[],"package":"org.mariadb.jdbc:mariadb-java-client","purl":"pkg:maven/org.mariadb.jdbc/mariadb-java-client","source":"GHSA-xvr9-35cr-46v9"},{"ecosystem":"Maven","fixed":["3.4.3"],"introduced":["3.4.0"],"last_affected":[],"package":"org.mariadb.jdbc:mariadb-java-client","purl":null,"source":"GHSA-xvr9-35cr-46v9"},{"ecosystem":"Maven","fixed":["3.4.3"],"introduced":["3.4.0"],"last_affected":[],"package":"org.mariadb.jdbc:mariadb-java-client","purl":"pkg:maven/org.mariadb.jdbc/mariadb-java-client","source":"GHSA-xvr9-35cr-46v9"},{"ecosystem":"Maven","fixed":["3.5.9"],"introduced":["3.5.0"],"last_affected":[],"package":"org.mariadb.jdbc:mariadb-java-client","purl":null,"source":"GHSA-xvr9-35cr-46v9"},{"ecosystem":"Maven","fixed":["3.5.9"],"introduced":["3.5.0"],"last_affected":[],"package":"org.mariadb.jdbc:mariadb-java-client","purl":"pkg:maven/org.mariadb.jdbc/mariadb-java-client","source":"GHSA-xvr9-35cr-46v9"}],"prev":{"headline":"MariaDB Connector/J: Cleartext Transmission of Sensitive Information and Insufficiently Protected Credentials","id":"CVE-2026-55857"},"products":["mariadb-connector-j"],"published":"2026-08-28","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-01","vendors":["mariadb-corporation"]},"summary":"A character set mismatch in MariaDB Connector/J allows attackers to bypass escaping mechanisms, potentially leading to SQL injection or data corruption.","url":"https://insights.sbomify.com/CVE-2026-55858/"}