ADVISORIES

Vulnerability

CVE-2021-27921

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.

22 advisories report this vulnerability, across 11 ecosystems.

Advisories

  • ALAS2023-2023-146

    Amazon Linux 2023 - ALAS2023-2023-146: Important priority package update for python-pillow

    Important CVE-2021-25290CVE-2021-25291CVE-2021-25293CVE-2021-27921 Amazon Linux Updated 22 March 2023
  • ALPINE-CVE-2021-27921

    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…

    CVE-2021-27921 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2021-27921
    CVE-2021-27921 Alpine Updated 18 November 2026
  • ALSA-2021:4149

    Moderate: python-pillow security update

    CVE-2020-35653CVE-2020-35655CVE-2021-25287CVE-2021-25288 AlmaLinux Updated 29 October 2026
  • DEBIAN-CVE-2021-27921

    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…

    CVE-2021-27921 Debian Updated 23 October 2026
  • GHSA-f4w8-cv6p-x6r5

    Pillow Denial of Service by Uncontrolled Resource Consumption

    High CVE-2021-27921 PyPI Updated 15 August 2025
  • OESA-2021-1127

    python-pillow security update

    High CVE-2020-35655CVE-2021-27921CVE-2021-27922CVE-2021-27923 openEuler Updated 18 August 2026
  • OESA-2021-1146

    python-pillow security update

    High CVE-2020-35655CVE-2021-27921CVE-2021-27922CVE-2021-27923 openEuler Updated 18 August 2026
  • PYSEC-2021-40

    Pillow before 8.1.1 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…

    CVE-2021-27921 PyPI Updated 6 December 2023
  • RHSA-2021:4149

    Red Hat Security Advisory: python-pillow security update

    CVE-2020-35653CVE-2020-35655CVE-2021-25287CVE-2021-25288 Red Hat Updated 23 November 2026
  • RHVEX-CVE-2021-27921

    python-pillow: Excessive memory allocation in BLP image reader

    Moderate CVE-2021-27921 Red Hat Updated 7 November 2026
  • RLSA-2021:4149

    Moderate: python-pillow security update

    CVE-2020-35653CVE-2020-35655CVE-2021-25287CVE-2021-25288 Rocky Linux Updated 4 February 2026
  • SUSE-SU-2021:1938-1

    Security update for python-Pillow

    CVE-2020-35653CVE-2020-35655CVE-2021-25287CVE-2021-25288 SUSE Updated 4 February 2026
  • SUSE-SU-2024:1673-1

    Security update for python-Pillow

    CVE-2020-35654CVE-2021-23437CVE-2021-25289CVE-2021-25290 openSUSE Updated 4 February 2026
  • SUSE-SU-2024:1673-2

    Security update for python-Pillow

    CVE-2020-35654CVE-2021-23437CVE-2021-25289CVE-2021-25290 SUSE Updated 4 February 2026
  • SUSEVEX-CVE-2021-27921

    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…

    Important CVE-2021-27921 SUSE Updated 2 September 2026
  • UBUNTU-CVE-2021-27921

    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…

    CVE-2021-27921 Ubuntu Updated 24 November 2026
  • USN-4763-1

    pillow vulnerabilities

    CVE-2021-25289CVE-2021-25290CVE-2021-25291CVE-2021-25292 Ubuntu Updated 24 November 2026
  • openSUSE-SU-2021:1134-1

    Security update for python-CairoSVG, python-Pillow

    Known exploited CVE-2020-15999CVE-2020-35653CVE-2020-35654CVE-2020-35655 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11209-1

    python36-Pillow-8.3.2-1.2 on GA media

    Known exploited CVE-2014-3589CVE-2014-3598CVE-2016-0740CVE-2016-0775 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:13827-1

    python310-Pillow-10.3.0-1.1 on GA media

    Known exploited CVE-2014-3589CVE-2014-3598CVE-2016-0740CVE-2016-0775 openSUSE Updated 4 February 2026
  • openSUSE-SU-2026:11261-1

    python313-Pillow-12.3.0-1.1 on GA media

    Known exploited CVE-2014-3589CVE-2014-3598CVE-2016-0740CVE-2016-0775 openSUSE Updated 13 July 2026

References