🔍 CVE-2026-45405

9.0
CVSS Score
CRITICAL
2026-06-26
2026-06-26 18:56
✅ 완료

🇰🇷 한글 설명

Dokku 0.38.2 미만 버전에서 git:from-archive 및 certs:add 명령어가 압축 파일 내의 경로를 검증하지 않고 추출하여 심볼릭 링크 트래버설 취약점이 발생합니다. 공격자는 이를 통해 dokku 사용자가 쓰기 권한을 가진 임의의 파일(예: ~/.ssh/authorized_keys)을 덮어써서 무제한 셸 권한을 획득할 수 있습니다.

💡 쉬운 설명

압축 파일 안에 가짜 경로를 만들어 시스템의 중요한 파일을 몰래 바꾸는 공격입니다. 이를 통해 해커가 서버의 관리자 권한을 통째로 뺏어갈 수 있습니다.

🇺🇸 원문 (English)

Dokku is a docker-powered PaaS. Prior to 0.38.2, the git:from-archive and certs:add commands extract user-supplied tar/zip archives into temporary directories without sanitizing member paths or preventing symlink traversal. GNU tar creates symlinks during extraction and follows them for subsequent entries, allowing an attacker to write arbitrary files anywhere writable by the dokku user — including overwriting ~/.ssh/authorized_keys to gain unrestricted shell access. This vulnerability is fixed in 0.38.2.

📍 영향받는 시스템

Dokku 0.38.2 미만 모든 버전

⚔️ 공격 벡터

악의적으로 조작된 tar/zip 압축 파일을 업로드하여 심볼릭 링크를 통한 임의 파일 쓰기 수행

🛡️ 대응 방법

Dokku를 0.38.2 이상의 최신 버전으로 업데이트

🔧 검증 코드

출력 결과가 VULNERABLE이면 취약한 버전이며, SAFE이면 안전한 버전입니다.

Shell / Script
dokku --version | grep -E '0\.[0-9]+(\.[0-9]+)?' | awk '{print $2}' | awk -F. '{if ($1 < 0 || $2 < 38 || ($2 == 38 && $3 < 2)) print "VULNERABLE"; else print "SAFE"}'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Docker