CVE-2021-27923: Pillow Denial of Service by Uncontrolled Resource Consumption
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.40856%
CWE
Published
3/18/2021
Updated
10/8/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| Pillow | pip | < 8.1.1 | 8.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from direct instantiation of image parsers (PngImageFile, JpegImageFile, Jpeg2KImageFile) within container format handlers without invoking Pillow's decompression bomb checks. The GitHub patch adds Image._decompression_bomb_check() calls to these specific locations, confirming these were the missing validation points. The affected functions handle image loading for ICO/ICNS/BLP containers but bypassed the standard safety checks performed by Image.open().