CVE-2019-16865
DOS attack in Pillow when processing specially crafted image files
Reported by mitre · Published October 4, 2019
pillow is fixed in 6.2.0 (PyPI)
An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, the library can either allocate very large amounts of memory or take an extremely long period of time to process the image.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pillow | PyPI | 6.2.0 |
| python-pillow-devel | Amazon Linux | 2.0.0-20.gitd1c6db8.amzn2.0.1 |
| python-pillow-sane | Amazon Linux | 2.0.0-20.gitd1c6db8.amzn2.0.1 |
| python-pillow-tk | Amazon Linux | 2.0.0-20.gitd1c6db8.amzn2.0.1 |
| pillow | Ubuntu:Pro:14.04:LTS | 2.3.0-1ubuntu3.4+esm1 |
| pillow | python | 6.2.0 |
| pillow | Ubuntu:16.04:LTS | 3.1.2-0ubuntu1.3 |
| pillow | Ubuntu:18.04:LTS | 5.1.0-1ubuntu0.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | python-pillow-devel | 0 |
| amazon:2 | python-pillow-sane | 0 |
| amazon:2 | python-pillow-tk | 0 |
| n/a | n/a | * |
| PyPI | Pillow | 0 |
| amazon:2 | python-pillow | 0 |
| amazon:2 | python-pillow-doc | 0 |
Timeline
- Oct 4, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (8 in total, the first dated here)
- Mar 6, 2026 Security Advisory (9 in total, the first dated here)
- Sep 13, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-16865
vulnetix vdb fixes CVE-2019-16865
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-16865/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- FEDORA-2019-e7c83bdf19 vendor-advisoryx_refsource_FEDORA
- FEDORA-2019-19a161d540 vendor-advisoryx_refsource_FEDORA
- USN-4272-1 vendor-advisoryx_refsource_UBUNTU
- RHSA-2020:0566 vendor-advisoryx_refsource_REDHAT
- DSA-4631 vendor-advisoryx_refsource_DEBIAN
- RHSA-2020:0580 vendor-advisoryx_refsource_REDHAT
- RHSA-2020:0578 vendor-advisoryx_refsource_REDHAT
- RHSA-2020:0681 vendor-advisoryx_refsource_REDHAT
- RHSA-2020:0683 vendor-advisoryx_refsource_REDHAT
- RHSA-2020:0694 vendor-advisoryx_refsource_REDHAT
- https://nvd.nist.gov/vuln/detail/CVE-2019-16865 advisory
- https://github.com/advisories/GHSA-j7mj-748x-7p78 advisory
- https://github.com/python-pillow/Pillow/issues/4123 url
- https://github.com/python-pillow/Pillow/commit/ab52630d0644e42a75eb88b78b9a9d7438a6fbeb patch
- https://usn.ubuntu.com/4272-1 url
- https://ubuntu.com/security/notices/USN-4272-1 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYDXD7EE4YAEVSTNIFZKNVPRVJX5ZOG3 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EMJBUZQGQ2Q7HXYCQVRLU7OXNC7CAWWU url
- https://github.com/python-pillow/Pillow url
…and 1 more