🔍 CVE-2026-113724

4.5
CVSS Score
MEDIUM
2026-10-20
2026-10-27 12:17
✅ 완료

🇰🇷 한글 설명

virtualenv 21.14.9 이전 버전의 safe_delete() 함수에서 심볼릭 링크를 따라가 권한을 변경하는 취약점이 발견되었습니다. 읽기 전용 디렉토리에 심볼릭 링크를 생성하면, 공격자가 대상 파일의 권한을 임의로 확장하여 다른 사용자가 수정할 수 있게 만들 수 있습니다.

💡 쉬운 설명

파일을 삭제하려 할 때 프로그램이 실수로 링크된 다른 파일의 권한을 마음대로 바꿔버리는 문제입니다. 이를 통해 원래는 건드릴 수 없던 중요한 파일을 누구나 수정할 수 있는 상태로 만들 수 있습니다.

🇺🇸 원문 (English)

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the safe_delete() deletion error handler responds to a failed removal by reading mode bits with os.lstat(path) and applying owner-write permission with os.chmod(path, ...), which follows a symlink. A planted link inside a read-only directory can therefore cause a victim-owned target outside the destination that is initially not writable by the invoking user to become broadly writable before the retry fails, provided that user owns the target and can change its mode. Another account can use the widened mode only if it can traverse the target's parent directories; root does not reach the demonstrated failure path, and the operation does not itself read the target. This issue is fixed in version 21.14.9.

📍 영향받는 시스템

virtualenv version 21.14.9 미만 버전

⚔️ 공격 벡터

읽기 전용 디렉토리에 대상 파일을 가리키는 심볼릭 링크를 심어 권한 변경 유도

🛡️ 대응 방법

virtualenv를 최신 버전인 21.14.9 이상으로 업데이트

🔧 검증 코드

출력된 버전이 21.14.9보다 낮으면 취약한 상태입니다.

Shell / Script
pip show virtualenv | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python