CVE & CISA-KEV Catalog

CVE-2021-28675

MEDIUM
5.5
CVSS v3
NVD

Description

An issue was discovered in Pillow before 8.2.0. PSDImagePlugin.PsdImageFile lacked a sanity check on the number of input layers relative to the size of the data block. This could lead to a DoS on Image.open prior to Image.load.

How to fix

Remediation Available
python-pillowAmazon
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
python-pillow-debuginfoAmazon
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
python-pillow-develAmazon
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
python-pillow-docAmazon
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
python-pillow-saneAmazon
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
python-pillow-tkAmazon
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
Fixed in:0:2.0.0-23.gitd1c6db8.amzn2.0.6
pillowDebian
Fixed in:8.1.2+dfsg-0.2CVE-2021-28675
Fixed in:8.1.2+dfsg-0.2CVE-2021-28675
Fixed in:8.1.2+dfsg-0.2CVE-2021-28675
pillowUbuntu
Fixed in:2.3.0-1ubuntu3.4+esm5USN-8135-1

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:3.1.2-0ubuntu1.6+esm3USN-8135-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:5.1.0-1ubuntu0.6USN-4963-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:5.1.0-1ubuntu0.8+esm2USN-8135-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:7.0.0-4ubuntu0.4USN-4963-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

python-pilUbuntu
Fixed in:2.3.0-1ubuntu3.4+esm5USN-8135-1

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:3.1.2-0ubuntu1.6+esm3USN-8135-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:5.1.0-1ubuntu0.8+esm2USN-8135-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:5.1.0-1ubuntu0.6USN-4963-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

python3-pilUbuntu
Fixed in:2.3.0-1ubuntu3.4+esm5USN-8135-1

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:3.1.2-0ubuntu1.6+esm3USN-8135-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:5.1.0-1ubuntu0.6USN-4963-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:5.1.0-1ubuntu0.8+esm2USN-8135-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:7.0.0-4ubuntu0.4USN-4963-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Exploit Intelligence

0.96%probability of exploitation in 30 days
60thpercentile

Moderate risk: more likely to be exploited than 60% of all known CVEs.

References

Vendor Advisory1
Third-Party Advisory1
Other references1

Related Vulnerabilities

Other CWE-252 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2005-4360High7.887%--
CVE-2007-3798Critical9.870%-Fix
CVE-2010-0211Critical9.828%-Fix
CVE-2022-23626High8.59.9%-Fix
CVE-2019-10902High7.54.7%--
CVE-2018-20216High7.53.9%-Fix

Common questions

How do I fix CVE-2021-28675?

Published advisories record a fix for 10 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2021-28675 being actively exploited?

Not that we know of. CVE-2021-28675 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.96% is the estimated probability that it will be exploited in the next 30 days. That is higher than 60% of all scored CVEs.

How severe is CVE-2021-28675?

CVE-2021-28675 has a CVSS v3 base score of 5.5, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2021-28675 affect?

Published advisories record a fix for python-pillow (Amazon), python-pillow-debuginfo (Amazon), python-pillow-devel (Amazon), python-pillow-doc (Amazon), and 6 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2021-28675
CVE-2021-28675 severity badge

Markdown

[![CVE-2021-28675](https://tridentstack.com/cve/badge/CVE-2021-28675.svg)](https://tridentstack.com/cve/CVE-2021-28675)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-28675"><img src="https://tridentstack.com/cve/badge/CVE-2021-28675.svg" alt="CVE-2021-28675"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.