Vulnerability in Python Pillow
CVE-2021-28677
An issue was discovered in Pillow before 8.2.0. For EPS data, the readline implementation used in EPSImageFile has to deal with any combination of \r and \n as line endings. It used an accidentally quadratic method of accumulating lines while looking for a line ending. A malicious EPS file could use this to perform a DoS of Pillow in the open phase, before an image was accepted for opening.
EPSS: 0.023 (81.5th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Python Pillow
- Fedoraproject Fedora — versions 33
- N/a — versions n/a
Public proof-of-concept exploits
References
- cve@mitre.org (Third Party Advisory, x_refsource_MISC)
- cve@mitre.org (Patch, Third Party Advisory, x_refsource_MISC)
- cve@mitre.org (x_refsource_FEDORA, vendor-advisory)
- cve@mitre.org (vendor-advisory, Third Party Advisory, x_refsource_GENTOO)
- cve@mitre.org (mailing-list, x_refsource_MLIST, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-28677?
- CVE-2021-28677 is a high-severity vulnerability in Python Pillow. CVSS score: 7.5/10. Published 2021-06-02.
- How severe is CVE-2021-28677?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2021-28677 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.