Vulnerabilities · 2022 · Python
CVE-2022-30595
Python Pillow vulnerability
libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Pillow. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python Pillow runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/python-pillow/Pillow/blob/main/src/libImaging/TgaRleDecode.c · Exploit
- pillow.readthedocs.io/en/stable/releasenotes/9.1.1.html · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-30595
- github.com/python-pillow/Pillow/commit/c846cc881ebe34e3518412c2e3636433d9947280
- github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-43145.yaml
- github.com/advisories/GHSA-hr8g-f6r6-mr22
- nvd.nist.gov/vuln/detail/CVE-2022-30595
- cve.org/CVERecord?id=CVE-2022-30595
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.