🇰🇷 한글 설명
Python 2.5.1 이하의 imageop 모듈에 존재하는 정수 오버플로우 취약점으로, tovideo 메서드와 기타 함수에 조작된 인자를 전달하여 힙 기반 버퍼 오버플로우를 유발할 수 있습니다. 이를 통해 서비스 거부(애플리케이션 충돌) 및 메모리 내용 유출이 가능합니다.
💡 쉬운 설명
Python의 이미지 처리 기능에 특정 값을 입력하면 프로그램이 크래시되거나 비공개 정보가 노출될 수 있습니다. 오래된 Python 버전(2.5.1 이하)을 사용하는 시스템에서 발생합니다.
🇺🇸 원문 (English)
Multiple integer overflows in the imageop module in Python 2.5.1 and earlier allow context-dependent attackers to cause a denial of service (application crash) and possibly obtain sensitive information (memory contents) via crafted arguments to (1) the tovideo method, and unspecified other vectors related to (2) imageop.c, (3) rbgimgmodule.c, and other files, which trigger heap-based buffer overflows.
📍 영향받는 시스템
Python 2.5.1 및 이전 버전 (imageop 모듈 포함)
⚔️ 공격 벡터
imageop 모듈의 tovideo 메서드에 대해 정수 오버플로우를 트리거하는 crafted 매개변수 전달
🛡️ 대응 방법
Python을 2.5.2 이상으로 업그레이드하거나, imageop 모듈을 사용하지 않는 이미지 처리 라이브러리(PIL/Pillow 등)로 대체
🔧 검증 코드
Python 버전이 2.5.1 이하이면 취약, 2.5.2 이상이면 안전합니다.
python -c "import sys; print(sys.version)" | grep -E '2\.[0-5]\.[0-1]' && echo 'Vulnerable' || echo 'Not vulnerable'