# CVE-2022-30595: Buffer over-flow in Pillow

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.35%, higher than 84% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-25T11:46:45.000Z
- Modified: 2026-09-08T08:48:18.503Z
- Also known as: GHSA-hr8g-f6r6-mr22, BIT-PILLOW-2022-30595, PYSEC-2022-43145
- Weaknesses: CWE-120, CWE-787
- Assigned by: mitre

## Description

libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pillow (PyPI): from 9.1.0 before 9.1.1
- python pillow: 9.1.0
- pillow (Bitnami): from 9.1.0 before 9.1.1

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/python-pillow/Pillow/blob/main/src/libImaging/TgaRleDecode.c> (exploit, advisory, third-party-advisory, web)
- <https://pillow.readthedocs.io/en/stable/releasenotes/9.1.1.html> (advisory, release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-30595> (advisory, web)
- <https://github.com/python-pillow/Pillow/commit/c846cc881ebe34e3518412c2e3636433d9947280> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-43145.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2022-30595](https://www.cve.org/CVERecord?id=CVE-2022-30595), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-hr8g-f6r6-mr22](https://github.com/advisories/GHSA-hr8g-f6r6-mr22), CC-BY-4.0, modified 2024-11-26
- NVD: [CVE-2022-30595](https://nvd.nist.gov/vuln/detail/CVE-2022-30595), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-43145](https://osv.dev/vulnerability/PYSEC-2022-43145), CC-BY-4.0, modified 2024-11-25
- Bitnami Vulnerability Database: [BIT-PILLOW-2022-30595](https://osv.dev/vulnerability/BIT-PILLOW-2022-30595), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-30595 · Whole record: https://cve.day/CVE-2022-30595.json · Rebuilt by cve.day 2026-11-25T22:58:11.929Z
