PYSEC-2026-2251

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/pillow/PYSEC-2026-2251.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-2251
Aliases
Published
2026-05-09T06:16:10.073Z
Modified
2026-07-13T07:26:28.768890335Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

PyPI / pillow

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
11.2.1
Fixed
12.2.0

Affected versions

11.*
11.2.1
11.3.0
12.*
12.0.0
12.1.0
12.1.1

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/pillow/PYSEC-2026-2251.yaml"