# CVE-2020-5313: Out-of-bounds Read in Pillow

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/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): 2.41%, higher than 84% of CVEs (2026-12-01)
- Published: 2020-01-03T00:52:23.000Z
- Modified: 2026-09-08T08:47:35.966Z
- Also known as: GHSA-hj69-c76v-86wr, BIT-PILLOW-2020-5313, PYSEC-2020-84
- Weaknesses: CWE-125
- Assigned by: mitre

## Description

libImaging/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pillow (PyPI): before 6.2.2; before a09acd0decd8a87ccce939d5ff65dab59e7d365b
- python pillow: before 6.2.2
- canonical ubuntu_linux: 14.04; 16.04; 18.04; 19.10
- debian debian_linux: 9.0; 10.0
- fedoraproject fedora: 30; 31
- pillow (Bitnami): before 6.2.2

## Every score

- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:N/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/a09acd0decd8a87ccce939d5ff65dab59e7d365b> (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://www.debian.org/security/2020/dsa-4631> (advisory, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5313> (advisory, web)
- <https://github.com/advisories/GHSA-hj69-c76v-86wr> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2020-84.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)
- <https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst#622-2020-01-02> (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)
- <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-5313](https://www.cve.org/CVERecord?id=CVE-2020-5313), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-hj69-c76v-86wr](https://github.com/advisories/GHSA-hj69-c76v-86wr), CC-BY-4.0, modified 2024-10-08
- NVD: [CVE-2020-5313](https://nvd.nist.gov/vuln/detail/CVE-2020-5313), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-84](https://osv.dev/vulnerability/PYSEC-2020-84), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-PILLOW-2020-5313](https://osv.dev/vulnerability/BIT-PILLOW-2020-5313), Apache-2.0, modified 2026-09-08

---

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