In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.
CVE-2024-28219Published 3 Apr 2024, 00:00 UTC
Real-world risk
1.3/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.7
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from mitre)
In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.
Am I affected?
What to do
Update to a fixed version: 10.3.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 1.0% chance of exploitation in 30 days (percentile 64), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.158
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.1575 × threat 0.851.339
- Rounded to one decimal between 0.1 and 101.3
Exploitation and evidence timeline
- 3 Apr 2024 Published
- 3 Dec 2026 Risk 1.3 (cvss fallback)
Weakness
CWE-680
References
- https://pillow.readthedocs.io/en/stable/releasenotes/10.3.0.html#securityx-transferred
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M/vendor-advisory, x-transferred
- https://lists.debian.org/debian-lts-announce/2024/04/msg00008.htmlmailing-list, x-transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M/
- CVE-2024-28219 on CVE.org