🇰🇷 한글 설명
Python 이미지 라이브러리인 Pillow의 12.0.0부터 12.2.0 버전 사이에서 EPS 파서에 취약점이 발견되었습니다. %%BeginBinary 지시어에 음수 바이트 수를 입력하면 Image.open() 함수가 무한 루프에 빠져 시스템 자원을 과도하게 소모할 수 있습니다.
💡 쉬운 설명
특수하게 제작된 이미지 파일을 열려고 하면 프로그램이 끝없이 같은 작업을 반복하게 만드는 오류입니다. 이로 인해 컴퓨터가 느려지거나 멈출 수 있습니다.
🇺🇸 원문 (English)
Pillow is a Python imaging library. From 12.0.0 through 12.2.0, Pillow's EPS parser in PIL/EpsImagePlugin.py accepts a negative byte count in the %%BeginBinary directive, allowing a crafted EPS file to cause Image.open() to seek backwards to the same directive and parse it repeatedly in an infinite loop. This issue is fixed in version 12.3.0.
📍 영향받는 시스템
Pillow 12.0.0 ~ 12.2.0 버전
⚔️ 공격 벡터
조작된 %%BeginBinary 지시어가 포함된 EPS 파일을 시스템에 업로드하거나 열도록 유도
🛡️ 대응 방법
Pillow 라이브러리를 12.3.0 이상의 최신 버전으로 업데이트
🔧 검증 코드
출력된 버전 번호가 12.3.0 미만(12.0.0~12.2.0)인지 확인
pip show Pillow | grep Version