🔍 CVE-2026-19672

0.0
CVSS Score
UNKNOWN
2026-08-19
2026-08-28 21:16
✅ 완료

🇰🇷 한글 설명

tarfile 모듈의 추출 필터가 목적지 디렉토리 외부로 경로를 벗어났다가 다시 돌아오는 멤버 이름을 처리할 때 디렉토리를 생성하는 취약점입니다. 경로 검증은 해결된 경로를 사용하지만, 중간 디렉토리는 입력된 이름 그대로 생성되어 목적지 외부의 빈 디렉토리가 만들어질 수 있습니다. 이 문제는 POSIX 플랫폼에만 영향을 미치며, Windows에서는 발생하지 않습니다.

💡 쉬운 설명

압축 파일을 풀 때 파일 이름에 특수한 경로 조작이 포함되어 있으면, 원래 풀려고 했던 폴더 바깥에 빈 폴더를 몰래 만들 수 있는 문제입니다. 다만 파일 내용까지 밖으로 나가는 것은 아니며, 폴더 구조를 어지럽히는 용도로 사용될 수 있습니다.

🇺🇸 원문 (English)

The tarfile module's tar and data extraction filters created directories outside the destination for members whose name leaves the destination and returns to it, such as ../evil/../dest/sub/file. The containment check used the resolved path, but intermediate directories were created from the name as given. Only empty directories are created outside the destination. Member contents are still extracted inside it. To return to the destination the member's name must contain the destination directory's own final component, so extraction into a secure randomised directory is not affected. This affects POSIX platforms only. On Windows, .. components are collapsed before the path reaches the filesystem, so the directories outside the destination are never created.

📍 영향받는 시스템

POSIX 기반 운영체제에서 실행되는 Python tarfile 모듈을 사용하는 시스템

⚔️ 공격 벡터

경로 조작 문자열(예: ../evil/../dest/)이 포함된 악의적인 tar 파일을 생성하여 대상 시스템에서 압축을 해제함

🛡️ 대응 방법

Python의 tarfile 모듈을 최신 보안 패치가 적용된 버전으로 업데이트하거나, 추출 시 필터를 엄격하게 적용함

🔧 검증 코드

출력된 Python 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인합니다.

Shell / Script
python3 -c 'import tarfile; print(tarfile.__version__)'

💻 영향받는 소프트웨어

Storage Protect Snapshot for Windows