🇰🇷 한글 설명
OpenHands Software Agent SDK 1.52.0 이전 버전에는 인증되지 않은 원격 코드 실행 취약점이 존재합니다. DockerWorkspace 및 Apptainer 워크스페이스 런처가 샌드박스 에이전트 서버를 모든 네트워크 인터페이스(0.0.0.0)에 바인딩하면서 session_api_keys를 비워두어 기본적으로 인증이 비활성화됩니다. 공격자는 게시된 컨테이너 포트에 접근만 하면 root 권한으로 임의의 셸 명령을 실행하고 마운트된 워크스페이스와 평문 시크릿에 접근할 수 있습니다.
💡 쉬운 설명
OpenHands 도구가 로그인 없이도 외부에서 접속 가능한 상태로 실행되어, 누구든 접근하면 서버를 장악할 수 있습니다. 이 때문에 저장된 비밀번호나 키 같은 중요한 정보도 유출될 수 있습니다.
🇺🇸 원문 (English)
OpenHands Software Agent SDK before 1.52.0 contains an unauthenticated remote code execution vulnerability where the DockerWorkspace and Apptainer workspace launchers bind the sandbox agent server to all network interfaces (0.0.0.0) with an empty session_api_keys list, disabling authentication by default. Attackers who can reach the published container port can send unauthenticated HTTP and WebSocket requests to execute arbitrary shell commands as root in the sandbox, access the mounted workspace, and read plaintext secrets from the secrets store.
📍 영향받는 시스템
OpenHands Software Agent SDK 1.52.0 미만 버전 (DockerWorkspace, Apptainer workspace 사용 환경)
⚔️ 공격 벡터
게시된 컨테이너 포트에 인증 없이 HTTP/WebSocket 요청을 보내 root 권한으로 임의 명령 실행
🛡️ 대응 방법
OpenHands Software Agent SDK를 1.52.0 이상으로 업그레이드하고, session_api_keys를 설정하며 서버 바인딩을 127.0.0.1 등 필요한 인터페이스로 제한
🔧 검증 코드
출력된 버전이 1.52.0 미만이면 취약하므로 업그레이드가 필요하고, 1.52.0 이상이면 패치된 버전입니다.
pip show openhands-sdk 2>/dev/null | grep -i '^version'