{"id":"CVE-2022-22815","aliases":["CVE-2022-22815","GHSA-pw3c-h7wp-cvhx","BIT-PILLOW-2022-22815","PYSEC-2022-8"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Initialization in Pillow","summary":"path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.","source":"cvelist"},{"lang":"en","text":"Pillow is the friendly PIL (Python Imaging Library) fork. `path_getbbox` in `path.c` in Pillow before 9.0.0 improperly initializes `ImagePath.Path`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La función path_getbbox en el archivo path.c en Pillow versiones anteriores a 9.0.0 inicializa incorrectamente ImagePath.Path","source":"nvd"}],"published":"2022-01-07T00:00:00.000Z","modified":"2026-09-08T08:48:18.475Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:P","score":6.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-665"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.0.0"}],"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"9.0.0"}],"vendor":"python","product":"pillow","cpe":"cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.0.0"}],"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.0.0"}],"ecosystem":"Bitnami","package":"pillow","purl":"pkg:bitnami/pillow","source":"bitnami"}],"references":[{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#fixed-imagepath-path-array-handling","tags":["advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/python-pillow/Pillow/blob/c5d9223a8b5e9295d15b5a9b1ef1dae44c8499f3/src/path.c#L331","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00018.html","tags":["advisory","mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.debian.org/security/2022/dsa-5053","tags":["advisory","third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202211-10","tags":["advisory","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22815","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/python-pillow/Pillow/pull/5920","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/python-pillow/Pillow/commit/1e092419b6806495c683043ab3feb6ce264f3b9c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/python-pillow/Pillow/commit/c48271ab354db49cdbd740bc45e13be4f0f7993c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-pw3c-h7wp-cvhx","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-8.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/python-pillow/Pillow","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/python-pillow/Pillow/blob/e8ab5640774716c5486d3cb05167f74f742ad6ef/CHANGES.rst?plain=1#L1187","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-22815","url":"https://www.cve.org/CVERecord?id=CVE-2022-22815","licence":"CVE Terms of Use","modified":"2024-08-03T03:21:49.146Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pw3c-h7wp-cvhx","url":"https://github.com/advisories/GHSA-pw3c-h7wp-cvhx","licence":"CC-BY-4.0","modified":"2024-10-14T18:38:03.414Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-22815","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22815","licence":"Public domain","modified":"2026-06-17T04:29:05.237Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-8","url":"https://osv.dev/vulnerability/PYSEC-2022-8","licence":"CC-BY-4.0","modified":"2023-12-06T01:01:58.043Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PILLOW-2022-22815","url":"https://osv.dev/vulnerability/BIT-PILLOW-2022-22815","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.475Z"}],"updatedAt":"2026-11-25T22:58:09.155Z","epss":{"score":0.02349,"percentile":0.84147,"date":"2026-12-01T12:00:22.000Z"}}