CVE-2022-30595 json
Buffer over-flow in Pillow
published 2022-05-25 4 y ago modified 2026-09-08 2 mo ago also BIT-pillow-2022-30595 , EUVD-2022-0201 , GHSA-hr8g-f6r6-mr22 , PYSEC-2022-43145
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.
Patch / fix
- pypi pillow 9.1.1
- bitnami pillow 9.1.1
- pillow Debian 14, Debian 13, Debian 12 9.1.1-1
debian advisories DEBIAN-CVE-2022-30595
- python-Pillow openSUSE Tumbleweed 11.1.0-1.1
- python-Pillow openSUSE Tumbleweed 9.1.1-1.1
opensuse advisories openSUSE-SU-2025:14645-1openSUSE-SU-2024:12111-1
- py3-pillow Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 9.1.1-r0
alpine advisories ALPINE-CVE-2022-30595
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-30595 updated cvss 6.2
python-pillow: heap buffer overflow in crafted TGA file
-
Red Hat Enterprise Linux 7 python-pillow, python-pillow-qt, python-pillow-tk, python-pillow-sane Red Hat Enterprise Linux 8 python-pillow, python3-pillow, python3-pillow-tknot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.33% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/python-pillow/Pillow/blob/main/src/libImaging/TgaRleDecode.c referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pillow | >=9.1.0, <9.1.1 |
9.1.1 |
| bitnami | pillow | >=9.1.0, <9.1.1 |
9.1.1 |
Classification
References
-
github.com
/python-pillow/Pillow/commit/c846cc881ebe34e3518412c2e3636433d9947280
web
-
github.com
/python-pillow/Pillow/blob/main/src/libImaging/TgaRleDecode.c
web, exploit, third-party-advisory, advisory
-
pillow.readthedocs.io
/en/stable/releasenotes/9.1.1.html
web, release-notes, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-30595
advisory, web
-
github.com
/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-43145.yaml
web
-
github.com
/python-pillow/Pillow
package
Sources
- CVE List CVE-2022-30595
- GitHub Advisory GHSA-hr8g-f6r6-mr22
- NVD CVE-2022-30595
- OSV BIT-pillow-2022-30595
- OSV PYSEC-2022-43145
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.