CVE-2022-22816 Out-of-bounds Read in Pillow

Medium 6.5 Published Updated

A buffer over-read in Pillow's path initialization allows attackers to cause denial of service or potentially execute code via crafted 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-2022-22816?

CVE-2022-22816 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 7 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.

Weakness: CWE-125

Which versions are affected by CVE-2022-22816?

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

PackageAffectedFixed in
pillow BitnamiAll versions9.0.0
pillow PyPIAll versions9.0.0
pillow PyPIAll versions9.0.0
pillow PyPIAll versions9.0.0

Products include Debian Debian Linux, Python Pillow.

How do I fix CVE-2022-22816?

Upgrade pillow to 9.0.0 or later.

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

Is CVE-2022-22816 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2022-22816, BIT-pillow-2022-22816, DEBIAN-CVE-2022-22816, GHSA-xrcv-f9gm-v42c, PYSEC-2022-9, UBUNTU-CVE-2022-22816.

Is CVE-2022-22816 in your software?

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

Check your SBOMs for free