🔍 CVE-2024-41956

8.1
CVSS Score
HIGH
2024-08-01
2026-04-15 00:35
✅ 완료

🇰🇷 한글 설명

Soft Serve 0.7.5 이전 버전에서 클라이언트가 보낸 환경 변수를 git 하위 프로세스에 그대로 전달하여, LD_PRELOAD와 같은 환경 변수를 통해 임의 코드 실행이 가능한 취약점입니다. 저장소에 커밋할 수 있는 사용자가 이를 악용하여 서버에서 코드를 실행할 수 있습니다.

💡 쉬운 설명

Soft Serve Git 서버가 클라이언트에서 받은 모든 설정 값(환경 변수)을 그대로 Git에 전달해서, 악의적인 사용자가 서버를 장악할 수 있습니다. 0.7.5 버전 이상으로 업그레이드하면 됩니다.

🇺🇸 원문 (English)

Soft Serve is a self-hostable Git server for the command line. Prior to 0.7.5, it is possible for a user who can commit files to a repository hosted by Soft Serve to execute arbitrary code via environment manipulation and Git. The issue is that Soft Serve passes all environment variables given by the client to git subprocesses. This includes environment variables that control program execution, such as LD_PRELOAD. This vulnerability is fixed in 0.7.5.

📍 영향받는 시스템

Soft Serve < 0.7.5

⚔️ 공격 벡터

저장소 커밋 권한 있는 사용자가 LD_PRELOAD 등 환경 변수를 조작하여 git 실행 시 악의적 코드 로드

🛡️ 대응 방법

Soft Serve를 0.7.5 이상으로 업그레이드

🔧 검증 코드

버전이 0.7.5 이상이면 안전, 0.7.5 미만이면 취약점 존재, 설치되지 않은 경우 위험 없음

Shell / Script
soft-serve version 2>/dev/null || echo 'Soft Serve not installed'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Git