🔍 CVE-2026-33324

8.8
CVSS Score
HIGH
2026-05-05
2026-07-24 23:10
✅ 완료

🇰🇷 한글 설명

SQLBot은 대규모 언어 모델(LLM) 기반의 텍스트-SQL 변환 시스템으로, 1.7.0 이전 버전에서 프롬프트 주입 취약점이 존재합니다. 사용자 입력이 필터링 없이 LLM 프롬프트에 직접 연결되고, LLM 응답의 SQL이 검증 없이 실행되어 인증된 공격자가 임의의 SQL을 실행할 수 있습니다. PostgreSQL 연결 시 COPY FROM PROGRAM을 통해 원격 코드 실행(RCE)까지 가능합니다.

💡 쉬운 설명

SQLBot의 질문 입력 필드가 보안 검증 없이 처리되어, 해킹된 질문으로 악의적인 SQL 명령어를 실행할 수 있습니다. PostgreSQL 데이터베이스 연결 시 공격자가 서버 자체를 제어할 수 있습니다.

🇺🇸 원문 (English)

SQLBot is an intelligent Text-to-SQL system based on large language models and RAG. In versions 1.7.0 and earlier, the Text2SQL chat interface is vulnerable to prompt injection. The user-provided question parameter is directly concatenated into the LLM prompt without filtering or escaping, and the SQL extracted from the LLM response is executed against the database without validation or sanitization. An authenticated attacker can craft a malicious question to manipulate the LLM into generating and executing arbitrary SQL statements. When connected to a PostgreSQL data source, this can lead to remote code execution via COPY FROM PROGRAM. This issue has been fixed in version 1.7.1.

📍 영향받는 시스템

SQLBot 1.7.0 이하

⚔️ 공격 벡터

인증된 공격자가 Text2SQL 채팅 인터페이스의 question 파라미터에 프롬프트 주입으로 임의의 SQL 실행

🛡️ 대응 방법

SQLBot을 1.7.1 이상으로 업그레이드하고 사용자 입력에 대한 검증 및 SQL 매개변수화 구현

🔧 검증 코드

설치된 SQLBot 버전을 확인하여 1.7.1 이상인지 검증합니다. 1.7.0 이하면 취약한 상태입니다.

Shell / Script
pip show sqlbot 2>/dev/null | grep -E 'Version'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PostgreSQL