CVE-2022-30595
python-pillow: heap buffer overflow in crafted TGA file
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami. Rated lower by GHSA (high), Red Hat (low).
Description
libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | pillow | 9.1.1 |
| alpine 3.16 | py3-pillow | 9.1.1-r0 |
| alpine 3.17 | py3-pillow | 9.1.1-r0 |
| alpine 3.18 | py3-pillow | 9.1.1-r0 |
| alpine 3.19 | py3-pillow | 9.1.1-r0 |
| alpine 3.20 | py3-pillow | 9.1.1-r0 |
| alpine 3.21 | py3-pillow | 9.1.1-r0 |
| alpine 3.22 | py3-pillow | 9.1.1-r0 |
| alpine 3.23 | py3-pillow | 9.1.1-r0 |
| alpine 3.24 | py3-pillow | 9.1.1-r0 |
| alpine edge | py3-pillow | 9.1.1-r0 |
| debian 12 | pillow | 9.1.1-1 |
Show all 16 entries from 16 sources
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | pillow | 9.1.1 |
| alpine 3.16 | py3-pillow | 9.1.1-r0 |
| alpine 3.17 | py3-pillow | 9.1.1-r0 |
| alpine 3.18 | py3-pillow | 9.1.1-r0 |
| alpine 3.19 | py3-pillow | 9.1.1-r0 |
| alpine 3.20 | py3-pillow | 9.1.1-r0 |
| alpine 3.21 | py3-pillow | 9.1.1-r0 |
| alpine 3.22 | py3-pillow | 9.1.1-r0 |
| alpine 3.23 | py3-pillow | 9.1.1-r0 |
| alpine 3.24 | py3-pillow | 9.1.1-r0 |
| alpine edge | py3-pillow | 9.1.1-r0 |
| debian 12 | pillow | 9.1.1-1 |
| debian 13 | pillow | 9.1.1-1 |
| debian 14 | pillow | 9.1.1-1 |
| echo | pillow | 9.1.1-1 |
| pip::GitHub Security Advisory pip | pillow | 9.1.1 |
References
- https://access.redhat.com/security/cve/CVE-2022-30595
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-43145.yaml
- https://github.com/python-pillow/Pillow
- https://github.com/python-pillow/Pillow/blob/main/src/libImaging/TgaRleDecode.c
- https://github.com/python-pillow/Pillow/commit/c846cc881ebe34e3518412c2e3636433d9947280
- https://nvd.nist.gov/vuln/detail/CVE-2022-30595
- https://pillow.readthedocs.io/en/stable/releasenotes/9.1.1.html
- https://www.cve.org/CVERecord?id=CVE-2022-30595