🇰🇷 한글 설명
Python 이미지 라이브러리인 Pillow의 ImageCms.ImageCmsTransform.apply API에서 발생하는 취약점입니다. 출력 이미지의 모드가 변환에 선언된 모드와 일치하지 않을 경우 제어 가능한 네이티브 힙 손상이 발생할 수 있습니다.
💡 쉬운 설명
이미지 처리 과정에서 데이터 형식이 맞지 않으면 컴퓨터 메모리가 엉망이 되어 프로그램이 오작동하거나 해킹될 수 있는 문제입니다. 잘못된 설정의 이미지를 처리할 때 발생합니다.
🇺🇸 원문 (English)
Pillow is a Python imaging library. Prior to 12.3.0, Pillow's ImageCms.ImageCmsTransform.apply(im, imOut) API can trigger controlled native heap corruption when the caller supplies an output image whose mode does not match the transform's declared output mode. This issue is fixed in version 12.3.0.
📍 영향받는 시스템
Pillow 12.3.0 미만 버전
⚔️ 공격 벡터
변환 모드와 일치하지 않는 출력 이미지를 제공하여 메모리 손상을 유도하는 방식
🛡️ 대응 방법
Pillow 라이브러리를 12.3.0 이상 버전으로 업데이트
🔧 검증 코드
출력된 버전 번호가 12.3.0보다 낮으면 취약한 상태입니다.
pip show Pillow | grep Version