CVE-2021-25290 Out-of-bounds Write in Pillow

High 7.5 Published Updated

A negative-offset memcpy in Pillow's TIFF decoder allows attackers to cause memory corruption, potentially leading to code execution or denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-25290?

CVE-2021-25290 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 19 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.

Weakness: CWE-787

Which versions are affected by CVE-2021-25290?

4 open source packages ship an affected version, including pillow. It affects 2 products.

PackageAffectedFixed in
pillow BitnamiAll versions8.1.1
pillow PyPIAll versions8.1.1
pillow PyPIAll versions8.1.1
pillow PyPIAll versions8.1.1

Products include Debian Debian Linux, Python Pillow.

How do I fix CVE-2021-25290?

Upgrade pillow to 8.1.1 or later.

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

Is CVE-2021-25290 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2021-25290, BIT-pillow-2021-25290, DEBIAN-CVE-2021-25290, GHSA-8xjq-8fcg-g5hw, PYSEC-2021-36, ROOT-APP-PYPI-CVE-2021-25290 and 1 more.

Is CVE-2021-25290 in your software?

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

Check your SBOMs for free