CVE-2022-22815
MEDIUM 6.5CVSS 3.1Improper Initialization in Pillow
path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.
- Published
- 10 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-665
- Also known as
- BIT-pillow-2022-22815GHSA-pw3c-h7wp-cvhxPYSEC-2022-8
- Sources
- NVDJSONOSV GHSA-pw3c-h7wp-cvhxJSONOSV PYSEC-2022-8JSON
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:L/VA:L/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.4 | AV:N/AC:L/Au:N/C:N/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pillowcpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* |
< 9.0.0 | 9.0.0 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
= 11.0 | |
| OSV | PyPI | pillow | < 9.0.0 | 9.0.0 |
References
- https://github.com/python-pillow/Pillow/blob/c5d9223a8b5e9295d15b5a9b1ef1dae44c8499f3/src/path.c#L331 · Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/01/msg00018.html · Mailing List, Third Party Advisory, WEB
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#fixed-imagepath-path-array-handling · Vendor Advisory, WEB
- https://security.gentoo.org/glsa/202211-10 · Third Party Advisory
- https://www.debian.org/security/2022/dsa-5053 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-22815 · ADVISORY
- https://github.com/python-pillow/Pillow/pull/5920 · WEB
- https://github.com/python-pillow/Pillow/commit/1e092419b6806495c683043ab3feb6ce264f3b9c · WEB
- https://github.com/python-pillow/Pillow/commit/c48271ab354db49cdbd740bc45e13be4f0f7993c · WEB
- https://github.com/advisories/GHSA-pw3c-h7wp-cvhx · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-8.yaml · WEB
- https://github.com/python-pillow/Pillow · PACKAGE
- https://github.com/python-pillow/Pillow/blob/e8ab5640774716c5486d3cb05167f74f742ad6ef/CHANGES.rst?plain=1#L1187 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 10 Jan 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Jan 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Jan 2022)