path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-22815
- https://github.com/python-pillow/Pillow/blob/c5d9223a8b5e9295d15b5a9b1ef1dae44c8499f3/src/path.c#L331
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#fixed-imagepath-path-array-handling
- https://lists.debian.org/debian-lts-announce/2022/01/msg00018.html
- https://www.debian.org/security/2022/dsa-5053
- https://github.com/python-pillow/Pillow/commit/c48271ab354db49cdbd740bc45e13be4f0f7993c
- https://github.com/advisories/GHSA-pw3c-h7wp-cvhx