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

CVE-2024-28219: Pillow buffer overflow vulnerability

April 3, 2024 (updated October 15, 2025)

In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.

References

  • github.com/advisories/GHSA-44wm-f244-xhp3
  • github.com/python-pillow/Pillow
  • github.com/python-pillow/Pillow/commit/2a93aba5cfcf6e241ab4f9392c13e3b74032c061
  • lists.debian.org/debian-lts-announce/2024/04/msg00008.html
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M
  • nvd.nist.gov/vuln/detail/CVE-2024-28219
  • pillow.readthedocs.io/en/stable/releasenotes/10.3.0.html

Code Behaviors & Features

Detect and mitigate CVE-2024-28219 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 10.3.0

Fixed versions

  • 10.3.0

Solution

Upgrade to version 10.3.0 or above.

Impact 6.7 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
  • CWE-676: Use of Potentially Dangerous Function
  • CWE-680: Integer Overflow to Buffer Overflow

Source file

pypi/Pillow/CVE-2024-28219.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:22 +0000.