🔍 CVE-2013-7338

7.1
CVSS Score
HIGH
2014-04-22
2026-05-06 22:30
✅ 완료

🇰🇷 한글 설명

Python 3.3.4 RC1 이전 버전의 ZIP 파일 처리 함수(ZipExtFile.read, ZipFile.extract 등)에서 실제 파일 크기보다 큰 파일 크기 값을 처리할 때 무한 루프가 발생하여 CPU를 과다 소비합니다. 공격자가 조작된 ZIP 파일을 원격으로 전송하여 서비스 거부 공격을 수행할 수 있습니다.

💡 쉬운 설명

Python에서 ZIP 파일을 열 때 파일 크기 정보가 잘못되어 있으면 프로그램이 계속 반복되면서 컴퓨터 자원을 낭비합니다. 공격자가 이런 불완전한 ZIP 파일을 보내 서버를 무리하게 만들 수 있습니다.

🇺🇸 원문 (English)

Python before 3.3.4 RC1 allows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a file size value larger than the size of the zip file to the (1) ZipExtFile.read, (2) ZipExtFile.read(n), (3) ZipExtFile.readlines, (4) ZipFile.extract, or (5) ZipFile.extractall function.

📍 영향받는 시스템

Python 3.3.4 RC1 이전의 모든 버전 (2.7.x, 3.0.x, 3.1.x, 3.2.x, 3.3.0-3.3.3)

⚔️ 공격 벡터

조작된 ZIP 파일을 ZipFile.extract(), ZipFile.extractall(), 또는 ZipExtFile.read() 함수로 처리하게 유도

🛡️ 대응 방법

Python을 3.3.4 이상 또는 2.7.7, 3.1.5, 3.2.5 이상의 패치 버전으로 업그레이드

🔧 검증 코드

vulnerable이 출력되면 패치 필요, patched가 출력되면 안전한 버전입니다

Shell / Script
python3 -c 'import sys; v = sys.version_info; print("vulnerable" if (v.major < 3 or (v.major == 3 and v.minor < 3) or (v.major == 3 and v.minor == 3 and v.micro < 4)) else "patched")'

📊 CVSS Vector String

CVSS Vector
AV:N/AC:M/Au:N/C:N/I:N/A:C

💻 영향받는 소프트웨어

Python