CVE-2020-5310 json
Integer overflow in Pillow
published 2020-01-03 6 y ago modified 2026-09-08 2 mo ago also BIT-pillow-2020-5310 , EUVD-2020-0134 , GHSA-vcqg-3p29-xw73 , PYSEC-2020-81
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.0%
- EPSS 2.0% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.
Patch / fix
- pypi pillow 6.2.2
- bitnami pillow 6.2.2
- python pillow 6.2.2
- pillow Debian 14, Debian 13, Debian 12 7.0.0-1
debian advisories DEBIAN-CVE-2020-5310
- py3-pillow Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 6.2.2-r0
alpine advisories ALPINE-CVE-2020-5310
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
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-5310 updated cvss 8.1
python-pillow: Integer overflow leading to buffer overflow in ImagingLibTiffDecode
-
Red Hat Quay v3 quay/quay-rhel8 v3.4.0-51, quay/clair-rhel8 v3.4.0-25, quay/quay-builder-rhel8 v3.4.0-18, quay/quay-operator-bundle v3.4.0-89, quay/quay-operator-rhel8 v3.4.0-132, quay/quay-bridge-operator-bundle v3.4.0-3, +5 morefixed: vendor fix RHSA-2021:0420
-
Red Hat Enterprise Linux 5 python-imaging Red Hat Enterprise Linux 6 python-imaging, python-imaging-tk, python-imaging-sane 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-tknot 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.98% chance of exploitation in the next 30 days, higher than 80% 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 | <6.2.2 |
6.2.2 |
| bitnami | pillow | <6.2.2 |
6.2.2 |
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/python-pillow/Pillow/commit/4e2def2539ec13e53a82e06c4b3daf00454100c4
web, patch, third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A/
vendor-advisory, web
-
usn.ubuntu.com
/4272-1/
vendor-advisory, third-party-advisory, advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/
vendor-advisory, web
-
pillow.readthedocs.io
/en/stable/releasenotes/6.2.2.html
web, release-notes, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-5310
advisory, web
-
github.com
/advisories/GHSA-vcqg-3p29-xw73
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2020-81.yaml
web
-
github.com
/pypa/advisory-db/blob/7872b0a91b4d980f749e6d75a81f8cc1af32829f/vulns/pillow/PYSEC-2020-81.yaml
web
-
github.com
/python-pillow/Pillow
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P
web
-
usn.ubuntu.com
/4272-1
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/
web
Sources
- CVE List CVE-2020-5310
- GitHub Advisory GHSA-vcqg-3p29-xw73
- NVD CVE-2020-5310
- OSV BIT-pillow-2020-5310
- OSV PYSEC-2020-81
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.