CVE-2024-28219: pillow · Integer Overflow to Buffer Overflow
Affects pillowSource CVE Database V5
Not known to be exploited · CVSS 6.7 Medium : upgrade to 10.3.0 when convenient.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.9% chance of exploitation in 30 days – higher than 62% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 10.3.0
CVSS:3.1/AC:H/AV:L/A:H/C:H/I:H/PR:L/S:U/UI:RExploitation evidence
Disclosed: evidence found.
CVE published 3 Apr 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade pillow to 10.3.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIpillowpkg:pypi/pillowOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-28219, organizations should immediately upgrade Pillow to version 10.3.0 or later, where the strcpy usage has been replaced with safer functions. Conduct a thorough inventory of all Python environments and applications that use Pillow, including development, testing, and production systems. Implement strict input validation and sanitization for all image files processed by applications to reduce the risk of malicious payloads triggering the overflow. Employ runtime protections such as Address Space Layout Randomization (ASLR) and Data Execution Prevention (DEP) to limit the impact of potential exploits. Monitor logs and system behavior for anomalies related to image processing components. For environments where immediate patching is not feasible, consider isolating image processing workloads in sandboxed or containerized environments to contain potential exploitation. Educate users about the risks of opening untrusted image files and enforce least privilege principles to minimize the impact of local exploitation.
Description
In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.
References
- pillow.readthedocs.io/en/stable/releasenotes/10.3.0.html (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M/ (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/04/msg00008.html (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M/ (opens in a new tab)