CVE-2016-3076 Pillow Buffer overflow in Jpeg2KEncode.c

Medium 5.5 Published Updated

Remote attackers can cause denial of service via memory corruption in Pillow by processing crafted Jpeg2000 files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2016-3076?

CVE-2016-3076 is a medium-severity memory corruption vulnerability in Python Pillow, published on 24 Apr 2017. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Heap-based buffer overflow in the j2k_encode_entry function in Pillow 2.5.0 through 3.1.1 allows remote attackers to cause a denial of service (memory corruption) via a crafted Jpeg2000 file.

Weakness: CWE-119

Which versions are affected by CVE-2016-3076?

3 open source packages ship an affected version, including pillow. It affects 1 product.

PackageAffectedFixed in
pillow PyPIFrom 2.5.03.1.2
pillow PyPIFrom 2.5.03.1.2
pillow PyPIFrom 2.5.03.1.2

Products include Python Pillow.

How do I fix CVE-2016-3076?

Upgrade pillow to 3.1.2 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2016-3076 being exploited?

There is no known exploitation of CVE-2016-3076 in the wild and no public exploit code.

All Python Pillow vulnerabilities

Sources

Also known as DEBIAN-CVE-2016-3076, GHSA-v9pc-9mvp-x87g, MGASA-2016-0141, PYSEC-2017-92.

Is CVE-2016-3076 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free