CVE-2022-30595
CRITICAL 9.8CVSS 3.1Buffer over-flow in Pillow
libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.
- Published
- 25 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-120CWE-787
- Also known as
- BIT-pillow-2022-30595GHSA-hr8g-f6r6-mr22PYSEC-2022-43145
- Sources
- NVDJSONOSV GHSA-hr8g-f6r6-mr22JSONOSV PYSEC-2022-43145JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pillowcpe:2.3:a:python:pillow:9.1.0:*:*:*:*:*:*:* |
= 9.1.0 | |
| OSV | PyPI | pillow | >= 9.1.0, < 9.1.1 | 9.1.1 |
References
- https://github.com/python-pillow/Pillow/blob/main/src/libImaging/TgaRleDecode.c · Exploit, Third Party Advisory, WEB
- https://pillow.readthedocs.io/en/stable/releasenotes/9.1.1.html · Release Notes, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-30595 · ADVISORY
- 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
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 25 May 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 May 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 May 2022)