🔍 CVE-2026-23879

8.0
CVSS Score
HIGH
2026-06-24
2026-10-25 22:10
✅ 완료

🇰🇷 한글 설명

py7zr 1.1.2 이하 버전에서 심볼릭 링크 체인을 이용해 대상 디렉토리 외부로 임의의 파일을 작성할 수 있는 취약점이 발견되었습니다. extractall 함수 사용 시 경로 검증 미흡으로 인해 악의적인 아카이브를 통해 호스트 파일 시스템의 임의 디렉토리에 접근할 수 있습니다. 이로 인해 원격 코드 실행, 권한 상승, 데이터 손상 또는 서비스 거부 공격이 발생할 수 있습니다.

💡 쉬운 설명

압축 파일을 풀 때 가짜 연결 통로(심볼릭 링크)를 만들어, 압축 해제 폴더가 아닌 컴퓨터의 중요한 시스템 폴더에 파일을 몰래 저장할 수 있는 문제입니다. 해커가 만든 압축 파일을 풀기만 해도 컴퓨터의 설정이 바뀌거나 해킹당할 위험이 있습니다.

🇺🇸 원문 (English)

py7zr is a Python-based library and utility to support 7zip archive compression, decompression, encryption and decryption. Versions 1.1.2 and below contain an an arbitrary file write vulnerability, which allows symbolic links to be recreated outside the destination directory via crafted malicious symbolic link chains. When using extractall to extract an archive, the library restores these symbolic links, linking them to arbitrary directories on the host file system. During extraction, the program only checks the link arcname within the destination directory, but ignores the combined symlink path resolution. Attackers can exploit this vulnerability by constructing malicious archives, thereby bypassing the directory boundary restrictions implemented by the extractor. Subsequent extraction of regular files through these symbolic links can result in arbitrary file writes. This vulnerability may lead to remote code execution, privilege escalation, data corruption, or denial of service. This issue has been fixed in version 1.1.3.

📍 영향받는 시스템

py7zr 1.1.2 및 그 이하 모든 버전

⚔️ 공격 벡터

악의적으로 조작된 심볼릭 링크가 포함된 7z 압축 파일을 생성하여 사용자가 이를 해제하도록 유도

🛡️ 대응 방법

py7zr 라이브러리를 취약점이 해결된 버전인 1.1.3 이상으로 업데이트

🔧 검증 코드

출력된 버전 번호가 1.1.3보다 낮으면 취약한 상태이며, 1.1.3 이상이면 안전합니다.

Shell / Script
pip show py7zr | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python