🔍 CVE-2026-119210

5.9
CVSS Score
MEDIUM
2026-10-29
2026-11-03 17:18
✅ 완료

🇰🇷 한글 설명

MariaDB Connector/J 3.0.0부터 3.3.7, 3.4.5, 3.5.11 이전 버전의 ClientMessage.validateLocalFileName() 검사가 정규식 기반이라, 따옴표로 감싼 식별자나 문자열, 주석 안의 LOAD DATA LOCAL INFILE 텍스트를 실제 구문으로 오인할 수 있습니다. 악의적이거나 침해된 서버 또는 중간자 공격자가 조작된 식별자를 반환하고 LOCAL INFILE 요청을 보내면, allowLocalInfile이 활성화된 경우 클라이언트 호스트의 파일이 유출될 수 있습니다.

💡 쉬운 설명

데이터베이스 연결 드라이버가 악성 서버의 속임수에 넘어가 클라이언트 PC의 파일을 외부로 보낼 수 있는 문제입니다. 드라이버를 최신 버전으로 업데이트하면 해결됩니다.

🇺🇸 원문 (English)

MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases. From 3.0.0 until 3.3.7, 3.4.5, and 3.5.11, the ClientMessage.validateLocalFileName() check used a regular expression that could match LOAD DATA LOCAL INFILE text inside quoted identifiers, string literals, or comments instead of requiring a real statement. A malicious or compromised server, or a machine-in-the-middle attacker, could return crafted database or table identifiers that the connector reused in metadata or updatable-result queries, then answer with a LOCAL INFILE request for a client file. With allowLocalInfile enabled, this caused the connector to stream any readable client-host file named by the crafted text, including through DatabaseMetaData.getImportedKeys(), DatabaseMetaData.getExportedKeys(), or ResultSet.updateRow() paths. This issue is fixed in versions 3.3.7, 3.4.5, and 3.5.11.

📍 영향받는 시스템

MariaDB Connector/J 3.0.0 ~ 3.3.7 미만, 3.4.0 ~ 3.4.5 미만, 3.5.0 ~ 3.5.11 미만 (allowLocalInfile 활성화 시)

⚔️ 공격 벡터

악성 또는 침해된 DB 서버/중간자 공격자가 조작된 식별자를 반환한 뒤 LOCAL INFILE 요청으로 클라이언트 파일을 탈취

🛡️ 대응 방법

MariaDB Connector/J를 3.3.7, 3.4.5, 3.5.11 이상으로 업그레이드하고, 불필요하면 allowLocalInfile 옵션을 비활성화

🔧 검증 코드

출력된 버전이 3.3.7, 3.4.5, 3.5.11 이상이면 패치된 것이고, 그보다 낮은 버전이면 취약하므로 업그레이드가 필요합니다.

Shell / Script
find / -name 'mariadb-java-client*.jar' 2>/dev/null | xargs -I{} sh -c 'unzip -p {} META-INF/MANIFEST.MF 2>/dev/null | grep -i Implementation-Version'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server