🔍 CVE-2026-24049

7.1
CVSS Score
HIGH
2026-01-22
2026-09-10 13:17
✅ 완료

🇰🇷 한글 설명

wheel은 Python wheel 파일을 조작하는 명령줄 도구입니다. 버전 0.40.0부터 0.46.1까지의 unpack 함수는 파일 권한 수정에 취약합니다. 악의적인 wheel 파일을 만들어서 권한을 변경하여 중요 시스템 파일을 수정할 수 있습니다.

💡 쉬운 설명

wheel 패키지의 취약점으로 인해 시스템 파일의 권한을 변경할 수 있습니다. 이는 권한 상승이나 임의 코드 실행을 허용할 수 있습니다. wheel 버전 0.46.2로 업데이트하면 문제가 해결됩니다.

🇺🇸 원문 (English)

wheel is a command line tool for manipulating Python wheel files, as defined in PEP 427. In versions 0.40.0 through 0.46.1, the unpack function is vulnerable to file permission modification through mishandling of file permissions after extraction. The logic blindly trusts the filename from the archive header for the chmod operation, even though the extraction process itself might have sanitized the path. Attackers can craft a malicious wheel file that, when unpacked, changes the permissions of critical system files (e.g., /etc/passwd, SSH keys, config files), allowing for Privilege Escalation or arbitrary code execution by modifying now-writable scripts. This issue has been fixed in version 0.46.2.

📍 영향받는 시스템

wheel 버전 0.40.0부터 0.46.1

⚔️ 공격 벡터

악의적인 wheel 파일을 만들어서 unpack 함수를 통해 시스템 파일의 권한을 변경

🛡️ 대응 방법

wheel 패키지를 버전 0.46.2로 업데이트합니다.

🔧 검증 코드

로컬 시스템에서 Python을 실행하여 wheel 패키지의 버전을 확인합니다. wheel 패키지가 설치되어 있지 않으면 미설치라고 출력됩니다.

Shell / Script
import pkg_resources
try:
    version = pkg_resources.get_distribution('wheel').version
    if version <= '0.46.1':
        print('{"result": "취약", "reason": "wheel 버전이 0.46.1 이하입니다."}')
    else:
        print('{"result": "양호", "reason": "wheel 버전이 0.46.2 이상입니다."}')
except pkg_resources.DistributionNotFound:
    print('{"result": "미설치", "reason": "wheel 패키지가 설치되어 있지 않습니다."}')

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python