CVE-2020-5312:
PCX P mode buffer overflow in Pillow
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.74359%
CWE
Published
11/3/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:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
Pillow | pip | < 6.2.2 | 6.2.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The GitHub commit diff explicitly shows the vulnerability was addressed by adding an 'else if' clause checking 'P' mode buffer boundaries in ImagingPcxDecode
. The CVE description specifically mentions improper size validation
in this file, and the patch adds critical xsize
vs. bytes
comparison for P mode that was previously missing. The added test case pcx_overrun2.bin
specifically exercises this code path.