🔍 CVE-2026-65700

9.8
CVSS Score
CRITICAL
2026-07-23
2026-07-27 17:16
✅ 완료

🇰🇷 한글 설명

h2oGPT 0.2.1 이하 버전의 OpenAI 호환 파일 API에서 경로 탐색(Path Traversal) 취약점이 발견되었습니다. 공격자는 인증되지 않은 상태로 bearer token에 경로 탐색 시퀀스를 삽입하여 서버 프로세스가 접근 가능한 임의의 파일을 읽고, 쓰고, 삭제할 수 있습니다. 이를 통해 시작 훅(startup hooks)이나 애플리케이션 로드 파일을 변조하여 원격 코드 실행(RCE)을 달성할 수 있습니다.

💡 쉬운 설명

해커가 특수한 코드를 입력하여 서버의 보안 구역을 넘어 시스템의 중요한 파일을 마음대로 조작할 수 있는 문제입니다. 이를 통해 해커가 서버를 완전히 장악하거나 명령을 내릴 수 있어 매우 위험합니다.

🇺🇸 원문 (English)

h2oGPT through 0.2.1 contains a path traversal vulnerability in the OpenAI-compatible files API that allows unauthenticated remote attackers to read, write, and delete arbitrary files accessible to the server process by supplying traversal sequences in the bearer token. The get_user_dir function in openai_server/backend_utils.py uses the bearer token string unsanitized as a path component via os.path.join, and because the default API key is EMPTY authentication is bypassed, enabling attackers to traverse outside the intended user directory through the file content, delete, and upload endpoints to achieve remote code execution by writing to startup hooks or application-loaded files.

📍 영향받는 시스템

h2oGPT 0.2.1 및 그 이전 버전

⚔️ 공격 벡터

인증되지 않은 원격 공격자가 bearer token에 경로 탐색 문자열을 포함시켜 API 요청을 전송

🛡️ 대응 방법

h2oGPT를 최신 보안 패치가 적용된 버전으로 업데이트하고, API 키를 비어있지 않은 안전한 값으로 설정하십시오.

🔧 검증 코드

출력된 버전이 0.2.1 이하인지 확인하여 취약 여부를 판단합니다.

Shell / Script
pip show h2pgpt | grep -E '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

💻 영향받는 소프트웨어

IBM WebSphere Application Server