🔍 CVE-2026-66297

8.0
CVSS Score
HIGH
2026-08-05
2026-10-24 16:10
✅ 완료

🇰🇷 한글 설명

livebook-dev livebook의 배포 설정 명령 생성 과정에서 OS 명령 주입(OS Command Injection) 취약점이 발견되었습니다. 배포 그룹 환경 변수 값이 쉘 이스케이프 처리 없이 Docker 및 Fly.io 설정 명령에 삽입되어, 악의적인 명령이 실행될 수 있습니다.

💡 쉬운 설명

설정값에 특수 문자를 넣어 명령어를 조작할 수 있는 보안 약점입니다. 사용자가 생성된 명령어를 복사해서 실행할 때, 공격자가 숨겨놓은 악성 명령어가 사용자의 컴퓨터에서 실행될 수 있습니다.

🇺🇸 원문 (English)

Improper Neutralization of Special Elements used in an OS Command (OS Command Injection) vulnerability in livebook-dev livebook allows command injection into generated deployment setup commands. LivebookWeb.Hub.Teams.DeploymentGroupAgentComponent.docker_instructions/2 and LivebookWeb.Hub.Teams.DeploymentGroupAgentComponent.fly_instructions/4 in lib/livebook_web/live/hub/teams/deployment_group_agent_component.ex interpolate deployment group environment variable values into the generated Docker and Fly.io setup commands without shell escaping. The values originate from the deployment group configuration and reach the sinks through Livebook.Hubs.Dockerfile.online_docker_info/3. Both sinks place the value inside a double-quoted shell word, so a value containing a command substitution such as $(...) or backticks is evaluated by the shell without any need to break out of the quoting, and a literal double quote terminates the quoted word and allows arbitrary further tokens. The generated command is displayed in the Livebook web interface with a copy button, so a user who copies it and runs it without reviewing it first executes the injected commands on their own machine, under their own account. An attacker requires privileges sufficient to set deployment group environment variables, while the resulting code execution occurs on the machine of whoever runs the generated command. The Kubernetes instructions are not affected, because they render the same values into a YAML manifest with escaping rather than into a shell command. This issue affects livebook: from 0.13.0 before 0.18.7 and from 0.19.0 before 0.19.9.

📍 영향받는 시스템

livebook: 0.13.0 ~ 0.18.6, 0.19.0 ~ 0.19.8

⚔️ 공격 벡터

배포 그룹 환경 변수에 $(...) 또는 백틱을 포함한 값을 설정하여 생성된 명령어를 실행하도록 유도

🛡️ 대응 방법

livebook를 0.18.7 또는 0.19.9 이상의 최신 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 취약한 범위(0.13.0~0.18.6 또는 0.19.0~0.19.8)에 해당하면 취약한 상태입니다.

Shell / Script
mix exec 'Mix.Tasks.Versions.version' 2>/dev/null | grep -E '0/(0/(1[3-8]|1[0-9]|2[0-9])|19/(0/(9|0|1|2|3|4|5|6|7|8)))'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Docker