🇰🇷 한글 설명
Python의 urllib3 라이브러리 2.6.2부터 2.8.0 버전 사이에서 Deflate 디코더가 스트림 끝에 남은 바이트를 처리하는 과정 중 무한 루프에 빠지는 취약점이 발견되었습니다. 공격자가 조작된 chunked Deflate 응답을 보낼 경우 CPU 사용량이 급증하고 요청이 완료되지 않는 서비스 거부(DoS) 상태가 발생할 수 있습니다.
💡 쉬운 설명
해커가 만든 특수한 응답을 받으면 프로그램이 끝없이 계산을 반복하느라 컴퓨터 자원을 모두 써버리는 문제입니다. 이로 인해 프로그램이 멈추거나 컴퓨터가 매우 느려질 수 있습니다.
🇺🇸 원문 (English)
urllib3 is an HTTP client library for Python. From 2.6.2 until 2.8.0, HTTPResponse.stream and HTTPResponse.read_chunked can enter an infinite loop because the Deflate decoder retains trailing bytes as unconsumed input after reaching end-of-stream and repeatedly decodes them without progress. The issue occurs when an untrusted server sends a chunked Deflate response whose decoded body exceeds a positive finite chunk size and whose encoded body has trailing bytes, specifically a response with Transfer-Encoding: chunked and Content-Encoding: deflate, content decoding enabled, and the positive finite amt=N streaming chunk size. The attack mechanism is that a malicious server returns a compressed chunked response with trailing bytes after the Deflate stream. The impact is excessive CPU usage and a request that does not complete, and network read timeouts do not interrupt the loop because no further socket read occurs. This issue is fixed in version 2.8.0.
📍 영향받는 시스템
urllib3 versions 2.6.2 through 2.8.0
⚔️ 공격 벡터
신뢰할 수 없는 서버가 조작된 Transfer-Encoding: chunked 및 Content-Encoding: deflate 응답을 전송하여 발생
🛡️ 대응 방법
urllib3 라이브러리를 2.8.0 이상의 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 2.6.2 이상 2.8.0 미만인지 확인하십시오.
pip show urllib3 | grep Version