# CVE-2022-22815: Improper Initialization in Pillow

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- 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)
- Published: 2022-01-07T00:00:00.000Z
- Modified: 2026-09-08T08:48:18.475Z
- Also known as: GHSA-pw3c-h7wp-cvhx, BIT-PILLOW-2022-22815, PYSEC-2022-8
- Weaknesses: CWE-665
- Assigned by: mitre

## Description

path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pillow (PyPI): before 9.0.0
- python pillow: before 9.0.0
- debian debian_linux: 9.0; 10.0; 11.0
- pillow (Bitnami): before 9.0.0

## Every score

- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:P`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#fixed-imagepath-path-array-handling> (advisory, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/blob/c5d9223a8b5e9295d15b5a9b1ef1dae44c8499f3/src/path.c#L331> (advisory, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2022/01/msg00018.html> (advisory, mailing-list, third-party-advisory, web)
- <https://www.debian.org/security/2022/dsa-5053> (advisory, third-party-advisory, vendor-advisory, web)
- <https://security.gentoo.org/glsa/202211-10> (advisory, third-party-advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-22815> (advisory, web)
- <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)

## Sources

- CVE List: [CVE-2022-22815](https://www.cve.org/CVERecord?id=CVE-2022-22815), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-pw3c-h7wp-cvhx](https://github.com/advisories/GHSA-pw3c-h7wp-cvhx), CC-BY-4.0, modified 2024-10-14
- NVD: [CVE-2022-22815](https://nvd.nist.gov/vuln/detail/CVE-2022-22815), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-8](https://osv.dev/vulnerability/PYSEC-2022-8), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-PILLOW-2022-22815](https://osv.dev/vulnerability/BIT-PILLOW-2022-22815), Apache-2.0, modified 2026-09-08

---

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