🔍 CVE-2026-106119

0.0
CVSS Score
UNKNOWN
2026-10-06
2026-10-06 20:17
✅ 완료

🇰🇷 한글 설명

LangChain 1.3.1 미만 버전의 MongoDBChatMessageHistory에서 세션 식별자의 데이터 타입을 강제하지 않는 취약점이 발견되었습니다. 공격자가 조작된 식별자를 전달할 경우 이를 MongoDB 쿼리 조건으로 해석하게 만들어, 다른 사용자의 대화 기록을 읽거나 수정 또는 삭제할 수 있습니다.

💡 쉬운 설명

채팅 기록을 저장할 때 사용하는 ID 값이 단순한 글자가 아닌 명령어로 작동할 수 있는 문제입니다. 이를 통해 해커가 다른 사람의 대화 내용을 훔쳐보거나 지울 수 있습니다.

🇺🇸 원문 (English)

LangChain is a framework for building LLM-powered applications. Prior to 1.3.1, MongoDBChatMessageHistory does not enforce the documented string type for an untrusted structured session identifier at runtime, allowing the identifier to be interpreted as a MongoDB query condition rather than as a literal value when multiple users' histories are stored in a shared MongoDB collection. An attacker able to invoke chat-history operations can read, modify, or delete another user's stored conversation. Applications using authenticated, server-controlled string identifiers are not affected. This issue is fixed in version 1.3.1.

📍 영향받는 시스템

LangChain 1.3.1 미만 버전 (MongoDBChatMessageHistory 사용 시)

⚔️ 공격 벡터

조작된 구조화된 세션 식별자를 입력하여 MongoDB 쿼리 조건 주입

🛡️ 대응 방법

LangChain을 1.3.1 이상 버전으로 업데이트

🔧 검증 코드

출력된 버전이 1.3.1 미만이면 취약한 상태입니다.

Shell / Script
pip show langchain | grep Version

💻 영향받는 소프트웨어

IBM WebSphere Application Server