---
id: GHSA-jgpv-4h4c-xhw3
title: 'Duplicate Advisory: Uncontrolled Resource Consumption in pillow'
summary: 'Duplicate Advisory: Uncontrolled Resource Consumption in pillow'
severity: high
cvss: 7.5
cwe:
  - CWE-400
vendor: pillow
product: pillow
ecosystem: pip
affected:
  - pillow < 8.1.1
patched:
  - pillow 8.1.2
published: '2021-04-23'
updated: '2026-10-27'
sourceUpdated: '2026-10-27T19:00:29Z'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-jgpv-4h4c-xhw3'
references:
  - url: 'https://github.com/calix2/pyVulApp/security/advisories/GHSA-jgpv-4h4c-xhw3'
  - url: 'https://github.com/advisories/GHSA-jgpv-4h4c-xhw3'
tags:
  - ghsa
  - pip
ingestedAt: '2026-10-27T19:54:27.797Z'
---

## Overview

## Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-f4w8-cv6p-x6r5. This link is maintained to preserve external references.

## Original Description
### Impact
_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 can be very large._

### Patches
_An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, the library can either allocate very large amounts of memory or take an extremely long period of time to process the image._

### Workarounds
_An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, the library can either allocate very large amounts of memory or take an extremely long period of time to process the image._

### References
https://nvd.nist.gov/vuln/detail/CVE-2021-27921

### For more information
If you have any questions or comments about this advisory:
* Open an issue in [example link to repo](http://example.com)
* Email us at [example email address](mailto:example@example.com)

## Affected packages

- `pillow < 8.1.1`

## Remediation

Upgrade to a patched release:

- `pillow 8.1.2`
