CVE-2016-3076Python Pillow
Medium 5.5
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Pillow.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | 2.5.0 |
| python | pillow | 2.5.1 |
| python | pillow | 2.5.2 |
| python | pillow | 2.5.3 |
| python | pillow | 2.6.0 |
| python | pillow | 2.6.0 |
| python | pillow | 2.6.1 |
| python | pillow | 2.6.2 |
| python | pillow | 2.7.0 |
| python | pillow | 2.8.0 |
| python | pillow | 2.8.1 |
| python | pillow | 2.8.2 |
| python | pillow | 2.9.0 |
| python | pillow | 2.9.0 |
| python | pillow | 2.9.0 |
| python | pillow | 2.9.0 |
| python | pillow | 3.0.0 |
| python | pillow | 3.0.0 |
| python | pillow | 3.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- pillow.readthedocs.io Release Notes Vendor Advisory
- www.securityfocus.com
- bugzilla.redhat.com Issue Tracking Third Party Advisory VDB Entry