🔍 CVE-2026-40315

9.8
CVSS Score
CRITICAL
2026-04-14
2026-06-17 10:44
✅ 완료

🇰🇷 한글 설명

PraisonAI의 SQLiteConversationStore에서 table_prefix 설정값이 검증 없이 SQL 쿼리에 직접 결합되는 SQL 식별자 주입 취약점이 발견되었습니다. 공격자가 구성 입력값을 제어할 수 있다면 임의의 SQL 구문을 주입하여 내부 데이터베이스 구조를 노출하거나 데이터를 조작할 수 있습니다. 이 문제는 버전 4.5.133에서 수정되었습니다.

💡 쉬운 설명

프로그램 설정값에 악의적인 명령어를 섞어 넣으면 데이터베이스의 중요한 정보를 몰래 빼가거나 내용을 바꿀 수 있는 보안 약점입니다. 설정 파일을 통해 공격자가 데이터베이스를 마음대로 조종할 수 있는 위험이 있습니다.

🇺🇸 원문 (English)

PraisonAI is a multi-agent teams system. Prior to 4.5.133, there is an SQL identifier injection vulnerability in SQLiteConversationStore where the table_prefix configuration value is directly concatenated into SQL queries via f-strings without any validation or sanitization. Since SQL identifiers cannot be safely parameterized, an attacker who controls the table_prefix value (e.g., through from_yaml or from_dict configuration input) can inject arbitrary SQL fragments that alter query structure. This enables unauthorized data access, such as reading internal SQLite tables like sqlite_master, and manipulation of query results through techniques like UNION-based injection. The vulnerability propagates from configuration input in config.py, through factory.py, to the SQL query construction in sqlite.py. Exploitation requires the ability to influence configuration input, and successful exploitation leads to internal schema disclosure and full query result tampering. This issue has been fixed in version 4.5.133.

📍 영향받는 시스템

PraisonAI 4.5.133 미만 버전

⚔️ 공격 벡터

from_yaml 또는 from_dict를 통한 table_prefix 설정값 조작을 이용한 SQL Injection

🛡️ 대응 방법

PraisonAI를 최신 보안 패치가 적용된 버전 4.5.133 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 4.5.133보다 낮으면 취약한 상태이며, 4.5.133 이상이면 안전합니다.

Shell / Script
pip show praisonai | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Teams