kcve.ai취약점 정보 · 내 자산 확인

CVE-2026-31861 Shell Command Injection in Git Routes [CloudCLI UI]

Git 경로의 셸 명령 주입 [CloudCLI UI]

설명

Cloud CLI (aka Claude Code UI) is a desktop and mobile UI for Claude Code, Cursor CLI, Codex, and Gemini-CLI. Prior to 1.24.0, The /api/user/git-config endpoint constructs shell commands by interpolating user-supplied gitName and gitEmail values into command strings passed to child_process.exec(). The input is placed within double quotes and only " is escaped, but backticks (`), $() command substitution, and \ sequences are all interpreted within double-quoted strings in bash. This allows authenticated attackers to execute arbitrary OS commands via the git configuration endpoint. This vulnerability is fixed in 1.24.0.

Cloud CLI(일명 Claude Code UI)는 Claude Code, Cursor CLI, Codex 및 Gemini-CLI를 위한 데스크탑 및 모바일 UI입니다. 1.24.0 이전 버전에서 /api/user/git-config 엔드포인트는 사용자가 제공한 gitName과 gitEmail 값을 child_process.exec()에 전달된 명령 문자열에 보간하여 셸 명령을 구성합니다. 입력은 더블 따옴표 안에 배치되고 "만 이스케이프되지만, backticks ( '), $ () 명령 대체, \ 시퀀스는 모두 bash의 더블 인용 문자열 내에서 해석됩니다. 이를 통해 인증 공격자는 git 구성 엔드포인트를 통해 임의의 OS 명령을 실행할 수 있습니다. 이 취약점은 1.24.0에서 수정되었습니다.

영향 받는 제품 제품 1개

  • siteboon

    claudecodeui

    해결 버전 있음

    영향 받는 버전

    • 1.24.0 미만

    해결 버전

    • 1.24.0 이상

참고 자료 3건

‹ 목록

점검 지원 범위 문의

도입 문의