Heap-based buffer overflow in Pillow - CVE-2016-3076

 

Heap-based buffer overflow in Pillow - CVE-2016-3076

Published: April 24, 2017 / Updated: January 3, 2021


Vulnerability identifier: #VU39136
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2016-3076
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Alex Clark and Contributors
Affected software:
Pillow

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in Heap-based buffer overflow in the j2k_encode_entry function in Pillow 2.5.0 through 3.1.1. A remote attacker can use a crafted Jpeg2000 file. to trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


How to mitigate CVE-2016-3076

Install update from vendor's website.

Sources