# CVE-2024-28219: Pillow buffer overflow vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.7
- **CVSS:** 6.7 (v3.1, CNA) `CVSS:3.1/AC:H/AV:L/A:H/C:H/I:H/PR:L/S:U/UI:R`
- **CVSS metrics:** Attack complexity: High; Attack vector: Local; Availability impact: High; Confidentiality impact: High; Integrity impact: High; Privileges required: Low; Scope: Unchanged; User interaction: Required
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.92% (percentile 59, 2026-11-26)
- **CWE:** CWE-680
- **Aliases:** BIT-pillow-2024-28219, GHSA-44wm-f244-xhp3, PYSEC-2026-1793
- **Published:** 2024-04-03T00:00:00.000Z
- **Modified:** 2026-09-10T03:50:11.139Z

## Who should check

- Projects that depend on PyPI package pillow (\< 10.3.0)
- Anyone running n/a (versions: see the vendor advisory)
- Anyone running fedoraproject fedora 39
- Anyone running python pillow \< 10.3.0
- Anyone running debian\_linux 10.0

## Description

In \_imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.

## Affected and fixed versions

- PyPI `pillow`: affected \< 10.3.0; fixed 10.3.0 (osv)
- n/a: see vendor advisory (nvd)
- fedoraproject fedora: 39 (nvd)
- python pillow: \< 10.3.0 (nvd)
- debian\_linux: 10.0 (nvd)

## Mitigation

- Upgrade pillow to 10.3.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-28219. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-28219.md
Affected: pillow < 10.3.0
Fixed in: 10.3.0

Steps:
1. Search this machine and project for pillow (PyPI), n/a, fedoraproject fedora, python pillow, debian_linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-28219 being exploited?

There is no confirmed exploitation: CVE-2024-28219 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.92% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-28219?

Medium: CVSS 6.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-28219?

pillow \< 10.3.0.

### Is there a fix for CVE-2024-28219?

Yes. Fixed in 10.3.0. Upgrade pillow to 10.3.0 or later.

### How do I check if I'm affected by CVE-2024-28219?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-28219>
- vendor: <https://github.com/advisories/GHSA-44wm-f244-xhp3>
- patch: <https://github.com/python-pillow/Pillow/commit/2a93aba5cfcf6e241ab4f9392c13e3b74032c061>
- other: <https://pillow.readthedocs.io/en/stable/releasenotes/10.3.0.html#security>
- other: <https://lists.debian.org/debian-lts-announce/2024/04/msg00008.html>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M/>
- other: <https://github.com/python-pillow/Pillow>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M>
- other: <https://pypi.org/project/pillow>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-28219>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-44wm-f244-xhp3> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1793> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-28219> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-28219>
