CVE-2020-35654 json
Pillow Out-of-bounds Write
published 2021-01-12 5 y ago modified 2026-09-08 2 mo ago also BIT-pillow-2020-35654 , EUVD-2021-0181 , GHSA-vqcj-wrf2-7v73 , PYSEC-2021-70
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
In Pillow before 8.1.0, TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode.
Patch / fix
- pypi pillow 8.1.0
- bitnami pillow 8.1.0
- python pillow 8.1.0
- pillow Debian 14, Debian 13, Debian 12 8.1.0-1
debian advisories DEBIAN-CVE-2020-35654
- pillow Ubuntu 20.04 LTS 7.0.0-4ubuntu0.2
ubuntu advisories UBUNTU-CVE-2020-35654
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-Pillow SLE Module for Package Hub 15 SP6, openSUSE Leap 15.5 7.2.0-150300.3.15.1
suse advisories SUSE-SU-2024:1673-2SUSE-SU-2024:1673-1
- python-Pillow openSUSE Tumbleweed 12.3.0-1.1
- python-Pillow openSUSE Tumbleweed 8.3.2-1.2
- python-Pillow openSUSE Tumbleweed 10.3.0-1.1
- python-Pillow openSUSE Leap 15.2 8.3.1-lp152.5.3.1
- python-CairoSVG openSUSE Leap 15.2 2.5.1-lp152.2.3.1
opensuse advisories openSUSE-SU-2026:11261-1openSUSE-SU-2024:11209-1openSUSE-SU-2024:13827-1openSUSE-SU-2021:1134-1
- py3-pillow Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 8.1.0-r0
alpine advisories ALPINE-CVE-2020-35654
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-pillow Arch Linux 8.1.0-1
arch linux advisories AVG-1438
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-35654 updated cvss 9.8
python-pillow: decoding crafted YCbCr files could result in heap-based buffer overflow
-
Red Hat Quay v3 quay/quay-rhel8 v3.6.0-62fixed: vendor fix RHSA-2021:3917
-
Red Hat Quay v3 quay/clair-rhel8 v3.6.0-70, quay/quay-builder-rhel8 v3.6.0-44, quay/quay-operator-rhel8 v3.6.0-43, quay/quay-operator-bundle v3.6.0-48, quay/quay-bridge-operator-rhel8 v3.6.0-40, quay/quay-bridge-operator-bundle v3.6.0-35, +3 more Red Hat Enterprise Linux 7 python-pillow, python-pillow-qt, python-pillow-tk, python-pillow-sane Red Hat Enterprise Linux 8 python-pillow, python3-pillow, python3-pillow-tk Red Hat Enterprise Linux 9 python-pillow Red Hat Quay 3 quay/quay-builder-qemu-rhcos-rhel8not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.87% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| OSV | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pillow | <8.1.0 |
8.1.0 |
| bitnami | pillow | <8.1.0 |
8.1.0 |
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
github.com
/python-pillow/Pillow/commit/eb8c1206d6b170d4e798a00db7432e023853da5c
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/6BYVI5G44MRIPERKYDQEL3S3YQCZTVHE/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/BF553AMNNNBW7SH4IM4MNE4M6GNZQ7YD/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/
vendor-advisory, web
-
pillow.readthedocs.io
/en/stable/releasenotes/index.html
web, release-notes, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-35654
advisory, web
-
github.com
/advisories/GHSA-vqcj-wrf2-7v73
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-70.yaml
web
-
github.com
/python-pillow/Pillow
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/6BYVI5G44MRIPERKYDQEL3S3YQCZTVHE
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/BF553AMNNNBW7SH4IM4MNE4M6GNZQ7YD
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/BF553AMNNNBW7SH4IM4MNE4M6GNZQ7YD/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/6BYVI5G44MRIPERKYDQEL3S3YQCZTVHE/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/
web
Sources
- CVE List CVE-2020-35654
- GitHub Advisory GHSA-vqcj-wrf2-7v73
- NVD CVE-2020-35654
- OSV BIT-pillow-2020-35654
- OSV PYSEC-2021-70
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.