🇰🇷 한글 설명
Pillow 13.0.0 미만 버전의 TIFF 인코더에서 색상표(ColorMap) 버퍼를 초과하여 읽는 취약점이 발견되었습니다. 공격자가 조작된 TIFF 메타데이터를 포함한 파일을 생성하면, 이를 재인코딩하는 과정에서 힙 메모리가 노출되거나 프로세스가 충돌할 수 있습니다.
💡 쉬운 설명
이미지 처리 라이브러리인 Pillow에서 특수하게 만들어진 이미지 파일을 열 때 메모리 영역을 잘못 읽는 문제가 있습니다. 이로 인해 컴퓨터 내부의 중요한 정보가 유출되거나 프로그램이 갑자기 꺼질 수 있습니다.
🇺🇸 원문 (English)
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a crafted ColorMap that is reused when the image is saved. An application that re-encodes the attacker's TIFF with libtiff can trigger the out-of-bounds read. This can disclose heap memory in the output or crash the process. This issue is fixed in version 13.0.0.
📍 영향받는 시스템
Pillow versions prior to 13.0.0
⚔️ 공격 벡터
조작된 TIFF 메타데이터를 포함한 파일을 업로드하여 서버나 애플리케이션이 이를 재인코딩하도록 유도
🛡️ 대응 방법
Pillow 라이브러리를 13.0.0 버전 이상으로 업데이트
🔧 검증 코드
출력된 Version 값이 13.0.0 미만이면 취약한 상태이며, 13.0.0 이상이면 안전합니다.
pip show Pillow | grep Version