🔍 CVE-2026-42309

5.5
CVSS Score
MEDIUM
2026-05-09
2026-07-24 21:10
✅ 완료

🇰🇷 한글 설명

Pillow 파이썬 이미지 라이브러리의 11.2.1~12.2.0 이전 버전에서 중첩된 리스트를 좌표로 전달할 때 재귀적으로 언팩되어 할당된 버퍼를 초과하는 힙 버퍼 오버플로우가 발생한다. ImagePath.Path, ImageDraw.polygon, ImageDraw.line 등의 API에 영향을 준다. 버전 12.2.0에서 패치되었다.

💡 쉬운 설명

Pillow 이미지 처리 라이브러리에서 복잡한 구조의 좌표 데이터를 입력하면 프로그램 메모리에 버퍼 오버플로우가 발생할 수 있습니다. 이를 악용하면 시스템 충돌이나 코드 실행으로 이어질 수 있습니다.

🇺🇸 원문 (English)

Pillow is a Python imaging library. From version 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept coordinates such as ImagePath.Path, ImageDraw.ImageDraw.polygon and ImageDraw.ImageDraw.line could cause a heap buffer overflow, as nested lists were recursively unpacked beyond the allocated buffer. Coordinate lists are now validated to contain exactly two numeric coordinates. This issue has been patched in version 12.2.0.

📍 영향받는 시스템

Pillow 11.2.1 ~ 12.1.x (12.2.0 이상은 안전)

⚔️ 공격 벡터

중첩된 리스트 구조를 좌표 매개변수로 전달하여 재귀적 언팩으로 버퍼 오버플로우 유발

🛡️ 대응 방법

Pillow를 12.2.0 이상으로 업그레이드

🔧 검증 코드

Version이 12.2.0 이상이면 안전, 11.2.1~12.1.x 범위이면 취약

Shell / Script
pip show Pillow | grep Version

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Python