Miggo Logo

CVE-2014-3589: Pillow denial of service via Crafted Block Size

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.80929%
Published
5/14/2022
Updated
10/8/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
pillowpip< 2.3.22.3.2
pillowpip>= 2.5, < 2.5.22.5.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing input validation in the ICNS image parser. The GitHub patch adds a critical check for 'blocksize <= 0' in IcnsImagePlugin.py's init method, which directly addresses CVE-2014-3589. The unpatched code allowed malicious block sizes to trigger denial of service via invalid memory operations. The function's role in parsing ICNS headers and the explicit fix in this method confirm its vulnerability.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

`PIL/I*nsIm***Plu*in.py` in Pyt*on Im**in* Li*r*ry (PIL) *n* Pillow ***or* *.*.* *n* *.*.x ***or* *.*.* *llows r*mot* *tt**k*rs to **us* * **ni*l o* s*rvi** vi* * *r**t** *lo*k siz*.

Reasoning

T** vuln*r**ility st*ms *rom missin* input v*li**tion in t** I*NS im*** p*rs*r. T** *it*u* p*t** ***s * *riti**l ****k *or '*lo*ksiz* <= *' in I*nsIm***Plu*in.py's __init__ m*t*o*, w*i** *ir**tly ***r*ss*s *V*-****-****. T** unp*t**** *o** *llow** m*