🔍 CVE-2020-26312

8.1
CVSS Score
HIGH
2024-05-14
2026-04-15 00:35
✅ 완료

🇰🇷 한글 설명

Dotmesh 0.8.1 이하 버전에서 tar 파일 추출 시 심볼릭 링크를 부정확하게 처리하여 경로 조회 공격이 가능합니다. 공격자가 악의적인 tar 파일을 제공하면 지정된 디렉토리 외부의 임의 파일을 읽거나 쓸 수 있습니다.

💡 쉬운 설명

Dotmesh에서 압축 파일을 풀 때 폴더 경계를 벗어나 다른 곳의 파일에 접근할 수 있는 취약점입니다. 악의적인 압축 파일로 시스템의 중요 파일을 훔치거나 손상시킬 수 있습니다.

🇺🇸 원문 (English)

Dotmesh is a git-like command-line interface for capturing, organizing and sharing application states. In versions 0.8.1 and prior, the unsafe handling of symbolic links in an unpacking routine may enable attackers to read and/or write to arbitrary locations outside the designated target folder. The routine `untarFile` attempts to guard against creating symbolic links that point outside the directory a tar archive is extracted to. However, a malicious tarball first linking `subdir/parent` to `..` (allowed, because `subdir/..` falls within the archive root) and then linking `subdir/parent/escapes` to `..` results in a symbolic link pointing to the tarball’s parent directory, contrary to the routine’s goals. This issue may lead to arbitrary file write (with same permissions as the program running the unpack operation) if the attacker can control the archive file. Additionally, if the attacker has read access to the unpacked files, they may be able to read arbitrary system files the parent process has permissions to read. As of time of publication, no patch for this issue is available.

📍 영향받는 시스템

Dotmesh 버전 0.8.1 이하

⚔️ 공격 벡터

악의적인 tar 아카이브를 통해 심볼릭 링크 체인으로 상위 디렉토리 접근 후 임의 파일 읽기/쓰기

🛡️ 대응 방법

Dotmesh를 0.8.1 이후 버전으로 업그레이드하거나 신뢰할 수 없는 tar 파일 추출 금지

🔧 검증 코드

설치된 Dotmesh 버전이 0.8.1 이하이면 'Vulnerable', 그 이상이거나 미설치 상태이면 'Not vulnerable or not installed' 출력

Shell / Script
dotmesh version 2>/dev/null | grep -E '0\.[0-8]\.[0-1]' && echo 'Vulnerable' || echo 'Not vulnerable or 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