{"id":"CVE-2022-45199","published":"2022-11-14T00:00:00Z","modified":"2024-08-03T14:09:56Z","title":"Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL","vendor":null,"product":null,"tier":"tail","description":{"text":"Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01501,"percentile":0.7493,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/python-pillow/Pillow/commit/2444cddab2f83f28687c7c20871574acbb6dbcf3","tags":[]},{"url":"https://github.com/python-pillow/Pillow/pull/6700","tags":[]},{"url":"https://bugs.gentoo.org/878769","tags":[]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/9.3.0","tags":[]},{"url":"https://security.gentoo.org/glsa/202211-10","tags":["vendor-advisory"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":14.99}]},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":[">=9.2.0, <9.3.0"],"patched":["9.3.0"],"from":["GHSA-q4mp-jvh2-76fj","PYSEC-2022-42980"],"provenance":"source"}],"summary":{"text":"The flaw lies in Pillow, a Python imaging library, specifically in its handling of the SAMPLESPERPIXEL value when processing images, and affects versions before 9.3.0. An attacker can cause a denial of service by supplying a crafted image that triggers the flaw.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:45Z"},"euvd":{"id":"EUVD-2022-0198","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-python-pillow-pillow-cve-2022-45199","children":[{"from":"CVE-2022-45199","to":"CVE-2026-112902","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PIL/TiffImagePlugin.py"],"commits":["https://github.com/python-pillow/Pillow/commit/2444cddab2f83f28687c7c20871574acbb6dbcf3","https://github.com/python-pillow/Pillow/commit/570df030c0d30c2bf5336b2ab59f3902d8ab0b6d","https://github.com/python-pillow/Pillow/commit/af56ace297b0991d02988fcc2ea933e4824b4fb3"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2022-22816","published":"2022-01-07","fixed":"9.0.0","kev":false},{"cve":"CVE-2022-22817","published":"2022-01-07","fixed":"9.0.1","kev":false},{"cve":"CVE-2022-45198","published":"2022-11-14","fixed":"9.2.0","kev":false,"link":{"from":"CVE-2022-45198","to":"CVE-2022-45199","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pillow","fromFixed":"9.2.0","toFixed":"9.3.0","daysApart":0}]}},{"cve":"CVE-2022-45199","published":"2022-11-14","fixed":"9.3.0","kev":false},{"cve":"CVE-2023-44271","published":"2023-11-03","fixed":"10.0.0","kev":false},{"cve":"CVE-2024-28219","published":"2024-04-03","fixed":"10.3.0","kev":false},{"cve":"CVE-2025-48379","published":"2025-07-01","fixed":"11.3.0","kev":false}],"package":"PyPI:pillow"}}