MEDIUM6.7
PYSEC-2026-1793
Pillow buffer overflow vulnerability
Quick fix
PYSEC-2026-1793 — pillow: upgrade to the fixed version with the command below.
pip install --upgrade 'pillow>=10.3.0'Details
In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-28219[ADVISORY]
- https://github.com/python-pillow/Pillow/commit/2a93aba5cfcf6e241ab4f9392c13e3b74032c061[WEB]
- https://github.com/python-pillow/Pillow[PACKAGE]
- https://lists.debian.org/debian-lts-announce/2024/04/msg00008.html[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M[WEB]
- https://pillow.readthedocs.io/en/stable/releasenotes/10.3.0.html#security[WEB]
- https://pypi.org/project/pillow[PACKAGE]
- https://github.com/advisories/GHSA-44wm-f244-xhp3[ADVISORY]