CVE-2021-25293 Out of bounds read in Pillow

High 7.5 Published Updated

An out-of-bounds read in Pillow allows attackers to cause denial of service or disclose sensitive memory information via crafted SGI images.

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-25293?

CVE-2021-25293 is a high-severity memory corruption vulnerability in Python Pillow, 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. There is an out-of-bounds read in SGIRleDecode.c.

Weakness: CWE-125

Which versions are affected by CVE-2021-25293?

4 open source packages ship an affected version, including pillow and Pillow. It affects 1 product.

PackageAffectedFixed in
pillow BitnamiAll versions8.1.1
pillow PyPIAll versions8.1.1
pillow PyPIFrom 4.3.08.1.1
Pillow PyPIFrom 4.3.08.1.1

Products include Python Pillow.

How do I fix CVE-2021-25293?

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-25293 being exploited?

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

All Python Pillow vulnerabilities

Sources

Also known as ALPINE-CVE-2021-25293, BIT-pillow-2021-25293, DEBIAN-CVE-2021-25293, GHSA-p43w-g3c5-g5mq, PYSEC-2021-39, ROOT-APP-PYPI-CVE-2021-25293 and 1 more.

Is CVE-2021-25293 in your software?

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

Check your SBOMs for free