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: 6.7 [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]
CVE-ID: CVE-2016-3076
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Pillow
Fedora
python-pillow

How to mitigate CVE-2016-3076

Install update from vendor's website.

python-pillow - addressed in versions 2.8.2-5.fc22, 3.0.0-4.fc23

External References

Related Security Bulletins