Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-28675

python-pillow: Excessive memory allocation in PSD image reader

Overview

Published
2 Jun 2021
Modified
17 Jun 2026
Medium CVE
2 Registry packages
9 OS packages
7 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

5.5 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

Weakness: CWE-252

Affected packages · 2

Packages affected by CVE-2021-28675
EcosystemPackageVulnerableFixed in
Bitnami pillow <8.2.0 8.2.0
PyPI pillow <8.2.0 8.2.0

Open a package to see all its vulnerabilities.

Operating systems · 22 fixes

Red Hat 2 releases · 2 packages

eol 1 fixed 1
python-pillow python3-pillow
Red Hat fixes for CVE-2021-28675
ReleasePackageFixed inAdvisory
7 python-pillow +5 eol —
8 python3-pillow 0:5.1.1-16.el8 RHSA-2021:4149

alma 1 release · 1 package

fixed 1
python3-pillow
alma fixes for CVE-2021-28675
ReleasePackageFixed in
8 python3-pillow 5.1.1-16.el8

alpine 4 releases · 1 package

fixed 4
py3-pillow
alpine fixes for CVE-2021-28675
ReleasePackageFixed in
3.22 py3-pillow 8.2.0-r0
3.23 py3-pillow 8.2.0-r0
3.24 py3-pillow 8.2.0-r0
edge py3-pillow 8.2.0-r0

debian 6 releases · 1 package

affected 2 fixed 4
pillow
debian fixes for CVE-2021-28675
ReleasePackageFixed in
10 pillow affected
11 pillow 8.1.2+dfsg-0.2
12 pillow 8.1.2+dfsg-0.2
13 pillow 8.1.2+dfsg-0.2
14 pillow 8.1.2+dfsg-0.2
9 pillow affected

echo 1 release · 1 package

fixed 1
pillow
echo fixes for CVE-2021-28675
ReleasePackageFixed in
pillow 8.1.2+dfsg-0.2

rocky 1 release · 1 package

fixed 1
python3-pillow
rocky fixes for CVE-2021-28675
ReleasePackageFixed in
8 python3-pillow 5.1.1-16.el8

ubuntu 7 releases · 1 package

fixed 7
pillow
ubuntu fixes for CVE-2021-28675
ReleasePackageFixed in
18.04 pillow 5.1.0-1ubuntu0.6
18.04-ESM pillow 5.1.0-1ubuntu0.6
20.04 pillow 7.0.0-4ubuntu0.4
20.04-ESM pillow 7.0.0-4ubuntu0.4
22.04 pillow 8.1.2+dfsg-0.1ubuntu1
24.04 pillow 8.1.2+dfsg-0.1ubuntu1

1 more row

References

Show all 46 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.