CVE-2022-30595: python pillow Out-of-bounds Write
Vulnerability summary
CVE-2022-30595 is a critical (CVSS 9.8) Out-of-bounds Write vulnerability in python pillow. EPSS estimates a 2.33% chance of exploitation in the next 30 days, higher than 83.5% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 25-05-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.33%
Chance of exploitation in the next 30 days
Percentile
84%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.33% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundPillow
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- py3-pillow< 9.1.1-r0
Debian1 product
- pillow< 9.1.1-1
Opensuse1 product
- python-Pillow&distro=openSUSE Tumbleweed< 9.1.1-1.1
PyPI1 product
- pillow≥ 9.1.0, < 9.1.1
Python1 product
- pillow9.1.0
Ubuntu1 product
- pillow< 9.0.1-1build1
6 vendors · 6 products
References
12 links- github.com/python-pillow/Pillow/blob/main/src/libImaging/TgaRleDecode.cX Refsource MISCWEBREPORTExploitThird Party Advisory
- pillow.readthedocs.io/en/stable/releasenotes/9.1.1.htmlX Refsource MISCWEBREPORTRelease NotesThird Party Advisory