CVE-2020-10177
Out-of-bounds reads in Pillow
Also known as BIT-pillow-2020-10177, GHSA-cqhg-xjhh-p8hf, PYSEC-2020-76
Mitigation
- Upgrade pillow to 7.1.0 or later.
Who should check
- Projects that depend on PyPI package pillow (< 7.1.0)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- pillow < 7.1.0
- Fixed in
- 7.1.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 1.48% chance of exploitation in 30 days (percentile 74, 2026-11-26)
- CWE
- CWE-125
- Modified
Description
Pillow before 7.1.0 has multiple out-of-bounds reads in libImaging/FliDecode.c.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI pillow | < 7.1.0 | 7.1.0 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2020-10177. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2020-10177.md Affected: pillow < 7.1.0 Fixed in: 7.1.0 Steps: 1. Search this machine and project for pillow (PyPI), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HOKHNWV2VS5GESY7IBD237E7C6T3I427/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BEBCPE4F2VHTIT6EZA2YZQZLPVDEBJGD/
- https://usn.ubuntu.com/4430-1/
- https://usn.ubuntu.com/4430-2/
- https://nvd.nist.gov/vuln/detail/CVE-2020-10177
- https://github.com/advisories/GHSA-cqhg-xjhh-p8hf
Patches
- https://github.com/python-pillow/Pillow/pull/4538
- https://github.com/python-pillow/Pillow/pull/4503
- https://github.com/python-pillow/Pillow/commit/f6926a041b4b544fd2ced3752542afb6c8c19405
- https://github.com/python-pillow/Pillow/commit/c88b0204d7c930e3bd72626ae6ea078571cc0ea7
- https://github.com/python-pillow/Pillow/commit/c66d8aa75436f334f686fe32bca8e414bcdd18e6
- https://github.com/python-pillow/Pillow/commit/c5edc361fd6450f805a6a444723b0f68190b1d0c
- https://github.com/python-pillow/Pillow/commit/b4e439d6d7fd986cd6b4c7f9ca18830d79dacd44
- https://github.com/python-pillow/Pillow/commit/8d4f3c0c5f2fecf175aeb895e9c2d6d06d85bdc9
- https://github.com/python-pillow/Pillow/commit/5b490fc413dfab2d52de46a58905c25d9badb650
- https://github.com/python-pillow/Pillow/commit/19ff42bd683486a8a308743c76972ef6a6482e9b
- https://github.com/python-pillow/Pillow/commit/11ef7ca53a7d0af4bc52666c29199deffa5fc1bd
- https://github.com/python-pillow/Pillow/commit/088ce4df981b70fbec140ee54417bcb49a7dffca
- https://github.com/python-pillow/Pillow/commit/00c6dd72d9ed0124cec81040b4bab0979a200fe2
Other
- https://github.com/python-pillow/Pillow/commits/master/src/libImaging
- https://pillow.readthedocs.io/en/stable/releasenotes/7.1.0.html
- https://lists.debian.org/debian-lts-announce/2020/08/msg00012.html
- https://github.com/python-pillow/Pillow/issues/4750
- https://pillow.readthedocs.io/en/stable/releasenotes/6.2.3.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HOKHNWV2VS5GESY7IBD237E7C6T3I427
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-574573
- https://usn.ubuntu.com/4430-1
- https://usn.ubuntu.com/4430-2
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BEBCPE4F2VHTIT6EZA2YZQZLPVDEBJGD
- https://github.com/python-pillow/Pillow
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2020-76.yaml
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HOKHNWV2VS5GESY7IBD237E7C6T3I427/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BEBCPE4F2VHTIT6EZA2YZQZLPVDEBJGD/
FAQ
Is CVE-2020-10177 being exploited?
There is no confirmed exploitation: CVE-2020-10177 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.48% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2020-10177?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2020-10177?
pillow < 7.1.0.
Is there a fix for CVE-2020-10177?
Yes. Fixed in 7.1.0. Upgrade pillow to 7.1.0 or later.
How do I check if I'm affected by CVE-2020-10177?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.