Bug 2525815 (CVE-2026-55858)

Summary: CVE-2026-55858 org.mariadb.jdbc/mariadb-java-client: MariaDB Connector/J: Silent data corruption due to character set mismatch
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: anjoseph, anthomas, ant, aschwart, aszczucz, avibelli, bgeorges, boliveir, ccranfor, cescoffi, dandread, dbosanac, dkreling, drichtar, eborisov, ehelms, ggainey, gmalinko, gsmet, janstey, jmartisk, jpasqual, jpechane, jprabhak, jreimann, juwatts, lball, lchilton, lthon, manderse, mdellweg, mdessi, mhulan, mosmerov, mposolda, mrizzi, ngough, nmoumoul, olubyans, osousa, pcattana, pcreech, pdelbell, pesilva, pgallagh, pjindal, probinso, rchan, rguimara, rhel-process-autobot, rmartinc, rruss, rstepani, rsvoboda, sbiarozk, sfeifer, smallamp, ssilvert, sthorger, tmalecek, tqvarnst, veshanka, vmuzikar, watson-tool-maintainers, wtam
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in MariaDB Connector/J, a component used to connect Java applications to MariaDB and MySQL databases. The connector incorrectly assumes a UTF-8 character set for communication, even if the database server changes its client character set to a non-UTF-8 value during a session. This mismatch can lead to silent data corruption, where data is written and read incorrectly, and may also allow attackers to bypass security mechanisms like byte-wise quoting or escaping.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2527771, 2527772, 2527776, 2527777, 2527778, 2527779, 2527781, 2527784, 2527785, 2527787, 2527789, 2527773, 2527774, 2527775, 2527782, 2527783, 2527786, 2527788    
Bug Blocks:    

Description OSIDB Bzimport 2026-08-28 22:51:25 UTC
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.