Denial of Service Vulnerability in Pillow by Python Imaging Library
CVE-2021-27922
7.5HIGH
What is CVE-2021-27922?
The Pillow library, a popular Python Imaging Library, contains a vulnerability that allows attackers to trigger a denial of service (DoS) condition by exploiting improper size validation of images contained within ICNS files. When an attacker submits an image with an excessively large reported size, the library may attempt to allocate an immense amount of memory, leading to potential server downtime and degraded performance. This vulnerability emphasizes the importance of ensuring robust size validation checks to prevent resource exhaustion and maintain the stability of applications relying on image processing.