# CVE-2022-45199: Pillow subject to DoS via SAMPLESPERPIXEL tag

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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): 1.51%, higher than 75% of CVEs (2026-12-01)
- Published: 2022-11-14T00:00:00.000Z
- Modified: 2026-09-08T08:48:18.529Z
- Also known as: GHSA-q4mp-jvh2-76fj, BIT-PILLOW-2022-45199, PYSEC-2022-42980
- Weaknesses: CWE-400
- Assigned by: mitre

## Description

Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pillow (PyPI): from 9.2.0 before 9.3.0; before 2444cddab2f83f28687c7c20871574acbb6dbcf3
- python pillow: before 9.3.0
- pillow (Bitnami): before 9.3.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/commit/2444cddab2f83f28687c7c20871574acbb6dbcf3> (advisory, fix, patch, third-party-advisory, web)
- <https://github.com/python-pillow/Pillow/pull/6700> (advisory, patch, third-party-advisory, web)
- <https://bugs.gentoo.org/878769> (advisory, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/python-pillow/Pillow/releases/tag/9.3.0> (advisory, release-notes, third-party-advisory, web)
- <https://security.gentoo.org/glsa/202211-10> (advisory, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-45199> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-42980.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)
- <https://github.com/advisories/GHSA-q4mp-jvh2-76fj> (advisory)

## Sources

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

---

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