Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pillow
  4. ›
  5. CVE-2022-22816

CVE-2022-22816: Out-of-bounds Read in Pillow

January 12, 2022 (updated October 11, 2024)

path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.

References

  • github.com/advisories/GHSA-xrcv-f9gm-v42c
  • github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-9.yaml
  • github.com/python-pillow/Pillow
  • github.com/python-pillow/Pillow/blob/c5d9223a8b5e9295d15b5a9b1ef1dae44c8499f3/src/path.c
  • github.com/python-pillow/Pillow/commit/5543e4e2d409cd9e409bc64cdc77be0af007a31f
  • github.com/python-pillow/Pillow/pull/5920
  • lists.debian.org/debian-lts-announce/2022/01/msg00018.html
  • nvd.nist.gov/vuln/detail/CVE-2022-22816
  • pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html
  • security.gentoo.org/glsa/202211-10
  • www.debian.org/security/2022/dsa-5053

Code Behaviors & Features

Detect and mitigate CVE-2022-22816 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 9.0.0

Fixed versions

  • 9.0.0

Solution

Upgrade to version 9.0.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read

Source file

pypi/Pillow/CVE-2022-22816.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:38 +0000.