製品・ソフトウェアに関する情報
Python Software FoundationのPython Pillowにおけるヒープベースのバッファオーバーフローの脆弱性
Title Python Software FoundationのPython Pillowにおけるヒープベースのバッファオーバーフローの脆弱性
Summary

PillowはPythonのイメージングライブラリです。バージョン11.2.1から12.2.0未満のバージョンにおいて、ImagePath.PathやImageDraw.ImageDraw.polygon、ImageDraw.ImageDraw.lineなどの座標を受け取るAPIにネストされたリストを渡すと、そのネストされたリストが割り当てられたバッファを超えて再帰的に展開されるため、ヒープバッファオーバーフローが発生する可能性がありました。現在は、座標リストが正確に2つの数値座標を含むことが検証されるようになっています。この問題はバージョン12.2.0で修正されました。

Possible impacts 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 9, 2026, midnight
Registration Date May 14, 2026, 10:18 a.m.
Last Update May 14, 2026, 10:18 a.m.
CVSS3.0 : 警告
Score 5.5
Vector CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected System
Python Software Foundation
Python Pillow 11.2.1 以上 12.2.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年05月14日]
  掲載
May 14, 2026, 10:18 a.m.

NVD Vulnerability Information
CVE-2026-42309
Summary

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.

Publication Date May 9, 2026, 3:16 p.m.
Registration Date May 10, 2026, 4:10 a.m.
Last Update May 13, 2026, 2:57 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* 11.2.1 12.2.0
Related information, measures and tools
Common Vulnerabilities List