🇰🇷 한글 설명
Pillow 라이브러리 13.0.0 미만 버전에서 발생하며, 너비가 0인 PPM 또는 PGM 이미지를 처리할 때 메모리 경계 검사 오류가 발생합니다. 공격자가 조작된 이미지를 제공하여 morphology 연산을 수행하게 하면 프로세스가 충돌할 수 있습니다.
💡 쉬운 설명
이미지 처리 프로그램이 너비가 없는 잘못된 이미지를 처리하다가 메모리 오류를 일으켜 프로그램이 강제로 종료될 수 있는 문제입니다. 특수하게 제작된 이미지를 업로드하면 프로그램이 멈추게 만들 수 있습니다.
🇺🇸 원문 (English)
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without rejecting that geometry. An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. This issue is fixed in version 13.0.0.
📍 영향받는 시스템
Pillow library versions prior to 13.0.0
⚔️ 공격 벡터
공격자가 너비가 0인 조작된 PPM/PGM 이미지 파일을 애플리케이션에 업로드하여 morphology 연산을 유도함
🛡️ 대응 방법
Pillow 라이브러리를 13.0.0 버전 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 13.0.0 미만이면 취약한 상태입니다.
pip show Pillow | grep Version