{"id":"CVE-2022-45199","aliases":["CVE-2022-45199","GHSA-q4mp-jvh2-76fj","BIT-PILLOW-2022-45199","PYSEC-2022-42980"],"related":[],"kind":"vulnerability","state":"published","title":"Pillow subject to DoS via SAMPLESPERPIXEL tag","summary":"Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL.","source":"cvelist"},{"lang":"en","text":"Pillow starting with 9.2.0 and prior to 9.3.0 allows denial of service via SAMPLESPERPIXEL. A large value in the SAMPLESPERPIXEL tag could lead to a memory and runtime DOS in TiffImagePlugin.py when setting up the context for image decoding. This issue has been patched in version 9.3.0.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Pillow anterior a 9.3.0 permite la denegación de servicio a través de SAMPLESPERPIXEL.","source":"nvd"}],"published":"2022-11-14T00:00:00.000Z","modified":"2026-09-08T08:48:18.529Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"9.2.0","status":"affected","fixed":"9.3.0"}],"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"9.3.0"}],"vendor":"python","product":"pillow","cpe":"cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"2444cddab2f83f28687c7c20871574acbb6dbcf3"},{"type":"ecosystem","introduced":"9.2.0","status":"affected","fixed":"9.3.0"}],"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","repo":"https://github.com/python-pillow/Pillow","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.3.0"}],"ecosystem":"Bitnami","package":"pillow","purl":"pkg:bitnami/pillow","source":"bitnami"}],"references":[{"url":"https://github.com/python-pillow/Pillow/commit/2444cddab2f83f28687c7c20871574acbb6dbcf3","tags":["advisory","fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/python-pillow/Pillow/pull/6700","tags":["advisory","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://bugs.gentoo.org/878769","tags":["advisory","issue-tracking","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/9.3.0","tags":["advisory","release-notes","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://security.gentoo.org/glsa/202211-10","tags":["advisory","third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45199","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-42980.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/python-pillow/Pillow","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-q4mp-jvh2-76fj","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-45199","url":"https://www.cve.org/CVERecord?id=CVE-2022-45199","licence":"CVE Terms of Use","modified":"2024-08-03T14:09:56.981Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q4mp-jvh2-76fj","url":"https://github.com/advisories/GHSA-q4mp-jvh2-76fj","licence":"CC-BY-4.0","modified":"2024-10-14T18:44:08.213Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-45199","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45199","licence":"Public domain","modified":"2026-06-17T05:09:37.973Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-42980","url":"https://osv.dev/vulnerability/PYSEC-2022-42980","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:31.598Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PILLOW-2022-45199","url":"https://osv.dev/vulnerability/BIT-PILLOW-2022-45199","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.529Z"}],"updatedAt":"2026-11-25T22:58:16.438Z","epss":{"score":0.01512,"percentile":0.75216,"date":"2026-12-01T12:00:22.000Z"}}