🔍 CVE-2026-107385

7.4
CVSS Score
HIGH
2026-10-08
2026-10-09 12:17
✅ 완료

🇰🇷 한글 설명

MariaDB Connector/Node.js의 특정 버전에서 text-protocol 이스케이프 처리가 세션의 NO_BACKSLASH_ESCAPES 모드를 준수하지 않는 취약점이 발견되었습니다. 이로 인해 공격자가 제어하는 입력값이 SQL 문자열 리터럴을 닫고 임의의 SQL 명령을 주입할 수 있는 SQL 인젝션 공격이 가능합니다.

💡 쉬운 설명

데이터베이스에 데이터를 저장할 때 특수 문자를 처리하는 방식에 오류가 있어, 해커가 악성 명령어를 몰래 끼워 넣을 수 있는 보안 구멍이 있습니다. 이를 통해 해커가 데이터베이스의 권한을 탈취하거나 데이터를 조작할 위험이 있습니다.

🇺🇸 원문 (English)

MariaDB Connector/Node.js is used to connect applications developed on Node.js to MariaDB and MySQL databases. Prior to 3.2.5, 3.3.4, 3.4.7, and 3.5.4, text-protocol escaping always prefixes quotes with a backslash and does not honor the session's NO_BACKSLASH_ESCAPES mode, including in Connection.escape(). When that mode is enabled, the backslash is an ordinary character, so an attacker-controlled placeholder value can close the SQL string literal and inject arbitrary SQL with the application's database privileges. The vulnerable configuration may be enabled server-wide, through connector initialization options, or with an application-issued SET sql_mode; execute() and batch() use binary protocols and are not affected. This issue is fixed in versions 3.2.5, 3.3.4, 3.4.7, and 3.5.4.

📍 영향받는 시스템

MariaDB Connector/Node.js 3.2.5, 3.3.4, 3.4.7, 3.5.4 미만 버전

⚔️ 공격 벡터

NO_BACKSLASH_ESCAPES 모드가 활성화된 환경에서 Connection.escape()를 사용하는 입력값에 특수 문자를 삽입하여 SQL 인젝션 수행

🛡️ 대응 방법

MariaDB Connector/Node.js를 최신 수정 버전(3.2.5, 3.3.4, 3.4.7 또는 3.5.4 이상)으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 취약한 버전 범위(3.2.5, 3.3.4, 3.4.7, 3.5.4 미만)에 해당하는지 확인하십시오.

Shell / Script
npm list mariadb-connector-nodejs

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server