🔍 CVE-2026-59971

10.0
CVSS Score
CRITICAL
2026-09-15
2026-09-30 17:43
✅ 완료

🇰🇷 한글 설명

MySQL MCP Server 0.4.2 미만 버전에서 SSE 전송 방식을 사용할 경우 인증 및 DNS 리바인딩 보호 기능이 누락되어 발생합니다. 공격자는 인증 없이 데이터베이스에 직접 SQL 쿼리를 실행하여 데이터를 유출하거나 수정할 수 있으며, FILE 권한이 있을 경우 서버 파일 읽기/쓰기 및 코드 실행까지 가능합니다.

💡 쉬운 설명

데이터베이스와 대화하는 프로그램의 보안 설정이 빠져 있어, 해커가 아무런 허락 없이 데이터베이스에 접속해 정보를 훔치거나 내용을 바꿀 수 있는 위험한 상태입니다. 심한 경우 해커가 컴퓨터의 파일을 조작하거나 명령을 내릴 수도 있습니다.

🇺🇸 원문 (English)

MySQL MCP Server is a Model Context Protocol server that enables secure interaction with MySQL databases. Prior to 0.4.2, setting MCP_TRANSPORT=sse causes src/mysql_mcp_server/server.py to construct SseServerTransport without security_settings or enable_dns_rebinding_protection, while the Starlette routes /, /sse, and /messages/ have no authentication and the service binds to 0.0.0.0 by default. A network attacker can directly reach execute_sql, or can use DNS rebinding to make a victim's browser relay same-origin requests to a locally bound service, and supply a query that reaches cursor.execute(query). This allows unauthenticated disclosure and modification of the configured database; when the MySQL account has FILE privileges, the same access can read or write server files and may enable code execution. The default stdio transport is not affected. This issue is fixed in 0.4.2.

📍 영향받는 시스템

MySQL MCP Server 0.4.2 미만 버전 (MCP_TRANSPORT=sse 설정 시)

⚔️ 공격 벡터

네트워크를 통한 직접 접근 또는 DNS 리바인딩을 이용한 브라우저 경유 공격

🛡️ 대응 방법

MySQL MCP Server를 0.4.2 이상 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 0.4.2 미만이면 취약한 상태이며, 0.4.2 이상이면 안전합니다.

Shell / Script
pip show mysql-mcp-server 2>/dev/null | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

MySQL