🔍 CVE-2026-31942

7.1
CVSS Score
HIGH
2026-06-02
2026-07-22 19:10
✅ 완료

🇰🇷 한글 설명

LibreChat 0.7.6 이하 버전의 API 키 관리 엔드포인트(PUT /api/keys)에서 IDOR 취약점이 발견되었습니다. 공격자가 요청 본문에 userId 파라미터를 주입하여 다른 사용자의 API 키 설정을 덮어쓸 수 있으며, 이를 통해 대화 내용을 공격자의 키로 유도하거나 서비스를 방해할 수 있습니다.

💡 쉬운 설명

로그인한 사용자가 다른 사람의 설정 정보를 몰래 수정할 수 있는 보안 결함입니다. 이를 통해 다른 사용자의 AI 서비스 연결을 가로채거나 사용할 수 없게 만들 수 있습니다.

🇺🇸 원문 (English)

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. In versions up to and including 0.7.6, an Insecure Direct Object Reference (IDOR) vulnerability exists in the API keys management endpoint (PUT /api/keys). Due to the use of the JavaScript object spread operator after setting the authenticated user's ID, any authenticated user can inject a userId parameter in the request body to overwrite any other user's API keys (e.g., OpenAI, Anthropic, Azure). This allows an attacker to replace a victim's API key configuration, potentially routing the victim's conversations through attacker-controlled keys or denying service by providing invalid keys. This is patched in version 0.8.3-rc1.

📍 영향받는 시스템

LibreChat versions up to and including 0.7.6

⚔️ 공격 벡터

인증된 사용자가 API 요청 시 userId 파라미터를 조작하여 타인의 API 키 정보를 덮어쓰는 방식

🛡️ 대응 방법

LibreChat을 버전 0.8.3-rc1 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 LibreChat의 버전이 0.7.6 이하인지 확인하십시오.

Shell / Script
npm list librechat || echo 'Check installed version manually'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Azure