# CVE-2020-35655: Pillow Out-of-bounds Read

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L`
- 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.66%, higher than 77% of CVEs (2026-12-02)
- Published: 2021-01-12T08:08:47.000Z
- Modified: 2026-09-08T08:48:24.717Z
- Also known as: GHSA-hf64-x4gq-p99h, BIT-PILLOW-2020-35655, PYSEC-2021-71
- Weaknesses: CWE-125
- Assigned by: mitre

## Description

In Pillow before 8.1.0, SGIRleDecode has a 4-byte buffer over-read when decoding crafted SGI RLE image files because offsets and length tables are mishandled.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pillow (PyPI): from 4.3.0 before 8.1.0
- python pillow: from 4.3.0 before 8.1.0
- fedoraproject fedora: 32; 33
- pillow (Bitnami): from 4.3.0 before 8.1.0

## Every score

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

## References

- <https://pillow.readthedocs.io/en/stable/releasenotes/index.html> (advisory, release-notes, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BYVI5G44MRIPERKYDQEL3S3YQCZTVHE/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BF553AMNNNBW7SH4IM4MNE4M6GNZQ7YD/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-35655> (advisory, web)
- <https://github.com/python-pillow/Pillow/commit/2f409261eb1228e166868f8f0b5da5cda52e55bf> (web)
- <https://github.com/python-pillow/Pillow/commit/7e95c63fa7f503f185d3d9eb16b9cee1e54d1e46> (web)
- <https://github.com/advisories/GHSA-hf64-x4gq-p99h> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-71.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6BYVI5G44MRIPERKYDQEL3S3YQCZTVHE> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BF553AMNNNBW7SH4IM4MNE4M6GNZQ7YD> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BF553AMNNNBW7SH4IM4MNE4M6GNZQ7YD/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6BYVI5G44MRIPERKYDQEL3S3YQCZTVHE/> (web)

## Sources

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

---

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