Live threats

All CVEs / Python

CVE-2016-3076Python Pillow

Medium 5.5

Priority
33
CVSS 3.0
5.5
EPSS
2.6%
probability of exploitation in 30 days · percentile 86
Auth required
Yes
Published
Apr 24, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-119
Vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

Heap-based buffer overflow in the j2k_encode_entry function in Pillow 2.5.0 through 3.1.1 allows remote attackers to cause a denial of service (memory corruption) via a crafted Jpeg2000 file.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pillow.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pillow ≥ 2.5.0 < 3.1.2 3.1.2 pip install "pillow>=3.1.2"
PyPI pillow ≥ 2.5.0 < 3.1.2 3.1.2 pip install "pillow>=3.1.2"

Per OSV / GitHub Advisories (GHSA-v9pc-9mvp-x87g, PYSEC-2017-92). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pythonpillow2.5.0
pythonpillow2.5.1
pythonpillow2.5.2
pythonpillow2.5.3
pythonpillow2.6.0
pythonpillow2.6.0
pythonpillow2.6.1
pythonpillow2.6.2
pythonpillow2.7.0
pythonpillow2.8.0
pythonpillow2.8.1
pythonpillow2.8.2
pythonpillow2.9.0
pythonpillow2.9.0
pythonpillow2.9.0
pythonpillow2.9.0
pythonpillow3.0.0
pythonpillow3.0.0
pythonpillow3.1.0

Official sources

References

Links published by the sources. Open them with care.