🔍 CVE-2026-27955

6.6
CVSS Score
MEDIUM
2026-06-30
2026-06-30 19:58
✅ 완료

🇰🇷 한글 설명

Coolify의 executeInDocker() 헬퍼 함수가 명령어를 bash -c '{$command}' 형식으로 감쌀 때 싱글 쿼트를 제대로 이스케이프하지 않는 취약점입니다. 공격자가 docker_compose_custom_build_command 또는 docker_compose_custom_start_command 필드를 제어할 수 있다면, 싱글 쿼트를 이용해 쉘을 탈출하고 관리되는 서버 호스트에서 임의의 명령어를 실행할 수 있습니다.

💡 쉬운 설명

프로그램이 명령어를 실행할 때 입력값에 포함된 특수 문자를 제대로 처리하지 못해 발생하는 문제입니다. 이를 통해 해커가 원래 의도된 범위를 벗어나 서버 전체를 제어할 수 있는 위험이 있습니다.

🇺🇸 원문 (English)

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.464, the executeInDocker() helper wraps commands in bash -c '{$command}' without escaping single quotes. User-controlled docker_compose_custom_build_command and docker_compose_custom_start_command fields are interpolated directly, allowing a single quote to break out of the bash -c argument and execute commands on the managed server host (outside the intended Docker container context). This vulnerability is fixed in 4.0.0-beta.464.

📍 영향받는 시스템

Coolify 4.0.0-beta.464 미만 버전

⚔️ 공격 벡터

사용자 제어 가능한 설정 필드에 싱글 쿼트를 삽입하여 bash 명령어를 탈출하는 명령 주입(Command Injection)

🛡️ 대응 방법

Coolify를 4.0.0-beta.464 이상의 버전으로 업데이트하십시오.

🔧 검증 코드

출력 결과에 4.0.0-beta.464 이상의 버전 정보가 포함되어 있는지 확인하십시오.

Shell / Script
curl -s http://<coolify-instance-url>/api/version | grep -E '4\.0\.0-beta\.464'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Docker