Skip to main content
VulnerabilityPublished Updated

CVE-2024-28219: pillow · Integer Overflow to Buffer Overflow

Affects pillowSource CVE Database V5

0

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

CVSS 3.1 base score
6.7Medium
How severe the flaw is on the 0–10 CVSS scale.
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:R

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Apr 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
PyPIpillowpkg:pypi/pillowOther threatsAffected
  • <10.3.0
Fixed in
  • 10.3.0

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

Community reviews

Loading reviews…