# CVE-2020-5310: Integer overflow in Pillow

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.98%, higher than 81% of CVEs (2026-12-01)
- Published: 2020-01-03T00:52:55.000Z
- Modified: 2026-09-08T08:47:35.897Z
- Also known as: GHSA-vcqg-3p29-xw73, BIT-PILLOW-2020-5310, PYSEC-2020-81
- Weaknesses: CWE-190
- Assigned by: mitre

## Description

libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pillow (PyPI): before 6.2.2; before 4e2def2539ec13e53a82e06c4b3daf00454100c4
- python pillow: before 6.2.2
- canonical ubuntu_linux: 14.04; 16.04; 18.04; 19.10
- fedoraproject fedora: 30; 31
- pillow (Bitnami): before 6.2.2

## Every score

- GitHub: CVSS:3.1 8.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html> (advisory, release-notes, third-party-advisory, web)
- <https://github.com/python-pillow/Pillow/commit/4e2def2539ec13e53a82e06c4b3daf00454100c4> (advisory, fix, patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A/> (vendor-advisory, web)
- <https://usn.ubuntu.com/4272-1/> (advisory, third-party-advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5310> (advisory, web)
- <https://github.com/advisories/GHSA-vcqg-3p29-xw73> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2020-81.yaml> (web)
- <https://github.com/pypa/advisory-db/blob/7872b0a91b4d980f749e6d75a81f8cc1af32829f/vulns/pillow/PYSEC-2020-81.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P> (web)
- <https://usn.ubuntu.com/4272-1> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/> (web)

## Sources

- CVE List: [CVE-2020-5310](https://www.cve.org/CVERecord?id=CVE-2020-5310), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-vcqg-3p29-xw73](https://github.com/advisories/GHSA-vcqg-3p29-xw73), CC-BY-4.0, modified 2024-10-08
- NVD: [CVE-2020-5310](https://nvd.nist.gov/vuln/detail/CVE-2020-5310), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-81](https://osv.dev/vulnerability/PYSEC-2020-81), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-PILLOW-2020-5310](https://osv.dev/vulnerability/BIT-PILLOW-2020-5310), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-5310 · Whole record: https://cve.day/CVE-2020-5310.json · Rebuilt by cve.day 2026-11-25T22:57:50.480Z
