cve.bz

CVE-2021-28675 Unchecked Return Value

5.5 mediumEPSS 1.0%Fix available

Medium (5.5). EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 8.2.0.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 62nd percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-252 Unchecked Return Value
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-28675 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-28675?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-28675?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-28675 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pillowbefore 8.2.0
fedoraproject:fedora33

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-g6rj-rv7j-xwp4PyPIpillow<8.2.08.2.0
PYSEC-2021-139PyPIpillow<8.2.08.2.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14pillow8.1.2+dfsg-0.2DEBIAN-CVE-2021-28675
Ubuntu18.04:LTSpillow5.1.0-1ubuntu0.6UBUNTU-CVE-2021-28675 USN-4963-1
Ubuntu20.04:LTSpillow7.0.0-4ubuntu0.4UBUNTU-CVE-2021-28675 USN-4963-1
UbuntuPro:14.04:LTSpillow2.3.0-1ubuntu3.4+esm5UBUNTU-CVE-2021-28675
UbuntuPro:16.04:LTSpillow3.1.2-0ubuntu1.6+esm3UBUNTU-CVE-2021-28675
UbuntuPro:20.04:LTSpillow-python2no fix listedUBUNTU-CVE-2021-28675
Red Hatenterprise_linux:8::appstreampython-pillow, python3-pillow, python-pillow-debuginfo and 3 more0:5.1.1-16.el8RHSA-2021:4149
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-Pillow4.2.1-3.14.1SUSE-SU-2021:1939-1
SUSEOpenStack Cloud 7python-Pillow2.8.1-4.22.1SUSE-SU-2021:1940-1
SUSEOpenStack Cloud 9, OpenStack Cloud Crowbar 9python-Pillow5.2.0-3.8.1SUSE-SU-2021:1938-1
openSUSELeap 15.5python-Pillow7.2.0-150300.3.12.1SUSE-SU-2024:1607-1
AlmaLinux8python3-pillow5.1.1-16.el8ALSA-2021:4149
Rocky Linux8python-pillow0:5.1.1-16.el8RLSA-2021:4149
Alpinev3.14, v3.15, v3.16 and 8 morepy3-pillow8.2.0-r0ALPINE-CVE-2021-28675

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

To mitigate this feature on Red Hat Quay keep the invoice generation feature disabled, as it is by default.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python-pillow-0:5.1.1-16.el8Fixed 2021-11-09RHSA-2021:4149
Red Hat Enterprise Linux 7python-pillowOut of support scope
Red Hat Quay 3quay/quay-rhel8Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-28675.

References

Check your stackJSON