🔍 CVE-2026-55858

5.9
CVSS Score
MEDIUM
2026-08-28
2026-09-08 21:08
✅ 완료

🇰🇷 한글 설명

MariaDB Connector/J의 특정 버전에서 서버의 character_set_client 설정이 UTF-8이 아닌 다른 값으로 변경될 경우, 드라이버는 여전히 UTF-8로 처리하여 데이터 손상 및 이스케이프 우회 문제가 발생할 수 있습니다. 이는 클라이언트와 서버 간의 문자셋 혼동을 야기하여 보안 메커니즘을 무력화할 수 있는 취약점입니다.

💡 쉬운 설명

데이터를 주고받는 규칙(문자셋)이 중간에 바뀌면, 프로그램은 UTF-8로 읽고 서버는 다른 방식으로 해석하여 데이터가 깨지거나 보안 검사를 통과할 수 있습니다. 이를 통해 공격자가 의도하지 않은 명령을 실행할 위험이 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

MariaDB Connector/J 2.7.14, 3.3.5, 3.4.3, 3.5.9 미만 버전

⚔️ 공격 벡터

악의적인 서버가 세션 도중 character_set_client를 비-UTF-8로 변경하여 클라이언트의 이스케이프 처리를 무력화함

🛡️ 대응 방법

MariaDB Connector/J를 수정된 버전(2.7.14, 3.3.5, 3.4.3, 3.5.9 이상)으로 업데이트하십시오.

🔧 검증 코드

출력된 mariadb-java-client의 버전이 취약 버전 범위에 포함되는지 확인하십시오.

Shell / Script
mvn dependency:list | grep -E 'mariadb-java-client:[0-9]+\.[0-9]+\.[0-9]+'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

💻 영향받는 소프트웨어

IBM WebSphere Application Server