CVE-2022-30595
python-pillow: heap buffer overflow in crafted TGA file
Overview
Description
libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-787
Affected packages · 2
Operating systems · 10 fixes
alpine 4 releases · 1 package
fixed 4
py3-pillow
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | py3-pillow | 9.1.1-r0 |
| 3.23 | py3-pillow | 9.1.1-r0 |
| 3.24 | py3-pillow | 9.1.1-r0 |
| edge | py3-pillow | 9.1.1-r0 |
debian 3 releases · 1 package
fixed 3
pillow
| Release | Package | Fixed in |
|---|---|---|
| 12 | pillow | 9.1.1-1 |
| 13 | pillow | 9.1.1-1 |
| 14 | pillow | 9.1.1-1 |
echo 1 release · 1 package
fixed 1
pillow
| Release | Package | Fixed in |
|---|---|---|
| pillow | 9.1.1-1 |
openSUSE 1 release · 2 packages
fixed 2
python311-pillow
python310-pillow
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python311-pillow +5 | 11.1.0-1.1 | openSUSE-SU-2025:14645-1 |
| Tumbleweed | python310-pillow +5 | 9.1.1-1.1 | openSUSE-SU-2024:12111-1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-30595
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-43145.yaml
- github.com https://github.com/python-pillow/Pillow
- github.com https://github.com/python-pillow/Pillow/blob/main/src/libImaging/TgaRleDecode.c
- github.com https://github.com/python-pillow/Pillow/commit/c846cc881ebe34e3518412c2e3636433d9947280
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-30595
- pillow.readthedocs.io https://pillow.readthedocs.io/en/stable/releasenotes/9.1.1.html
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-30595
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.