Security mailing lists by PureSourceCode

CVE-2021-27921

HIGH 7.5CVSS 3.1

Pillow Denial of Service by Uncontrolled Resource Consumption

Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for a BLP container, and thus an attempted memory allocation can be very large.

Published
3 Mar 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-20CWE-400
Also known as
BIT-pillow-2021-27921GHSA-f4w8-cv6p-x6r5PYSEC-2021-40
Sources
NVDJSONOSV GHSA-f4w8-cv6p-x6r5JSONOSV PYSEC-2021-40JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD python pillow
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
< 8.1.1 8.1.1
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
= 32
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
= 33
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
= 34
OSV PyPI pillow < 8.1.2 8.1.2
OSV PyPI pillow < 8.1.1 8.1.1

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 3 Mar 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Mar 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Mar 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.