🇰🇷 한글 설명
Pillow 13.0.0 미만 버전의 P;2L 및 P;4L raw 디코더에서 입력 버퍼의 끝을 넘어 데이터를 읽는 취약점이 발견되었습니다. 공격자가 조작된 버퍼와 이미지 크기를 제공할 경우, 최대 3바이트의 힙 메모리가 노출되거나 프로세스가 충돌할 수 있습니다.
💡 쉬운 설명
이미지 처리 라이브러리인 Pillow에서 이미지 데이터를 읽을 때 정해진 범위를 벗어나 메모리를 읽는 오류가 있습니다. 이를 통해 중요한 정보가 유출되거나 프로그램이 갑자기 종료될 수 있습니다.
🇺🇸 원문 (English)
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's P;2L and P;4L raw decoders can read past the end of an input buffer. ImagingRawDecode calculates a packed-pixel row size, while the unpackers read separately padded bit planes. A caller can supply a buffer and image dimensions whose accepted size is smaller than the unpacker's actual footprint. This can disclose up to three adjacent heap bytes in output pixels or crash the process. This issue is fixed in version 13.0.0.
📍 영향받는 시스템
Pillow versions prior to 13.0.0
⚔️ 공격 벡터
조작된 이미지 크기 및 버퍼를 포함한 악성 이미지 파일 처리
🛡️ 대응 방법
Pillow 라이브러리를 13.0.0 버전 이상으로 업데이트
🔧 검증 코드
출력된 버전 번호가 13.0.0 미만이면 취약한 상태입니다.
pip show Pillow | grep Version