python-pillow/pillow · Security
Pillow buffer overflow vulnerability
- GHSA ID
- GHSA-44wm-f244-xhp3
- CVE ID
- CVE-2024-28219
- Severity
- high
- Published
- Updated
- CVSS
- 6.7 · CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- CVSS v3
- 6.7 · CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- CVSS v4
- 7.3 · CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Description
In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.
CWEs
- 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
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-28219 ↗
- https://pillow.readthedocs.io/en/stable/releasenotes/10.3.0.html#security ↗
- https://github.com/python-pillow/Pillow/commit/2a93aba5cfcf6e241ab4f9392c13e3b74032c061 ↗
- https://lists.debian.org/debian-lts-announce/2024/04/msg00008.html ↗
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M ↗
- https://github.com/advisories/GHSA-44wm-f244-xhp3 ↗