HighGHSA-j7mj-748x-7p78CVE-2019-16865PYSEC-2019-110
DOS attack in Pillow when processing specially crafted image files
Published 22 Oct 2019 · Updated 9 Oct 2024
Is your project on an affected pillow?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
pillowPyPI
- Affected
- <6.2.0
- Fixed in
- 6.2.0
Update to the fixed version for your release line, for example:
pip install 'pillow>=6.2.0'Details
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.
Is GHSA-j7mj-748x-7p78 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected pillow, and gives you the command that fixes it.
More advisories for pillow
- MediumCVE-2026-128066Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data · 12 Nov 2026
- HighCVE-2026-128067Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size · 12 Nov 2026
- CriticalCVE-2026-112398Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution · 23 Oct 2026
- MediumCVE-2026-114501Pillow: Arrow export leaks stale heap memory when PILLOW_ALIGNMENT > 1 · 23 Oct 2026
- HighGHSA-78g4-xqwv-q3g8Pillow: Bundled libopenjp2 2.5.4 in all wheels since 11.1.0 carries OSV-2025-219 heap-buffer-overflow write reachable from Image.open().load() · 22 Oct 2026
- HighCVE-2026-96778Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer · 22 Oct 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-16865
- Linkgithub.com/python-pillow/Pillow/issues/4123
- Linkgithub.com/python-pillow/Pillow/commit/ab52630d0644e42a75eb88b78b9a9d7438a6fbeb
- Linkwww.debian.org/security/2020/dsa-4631
- Linkusn.ubuntu.com/4272-1
- Linkubuntu.com/security/notices/USN-4272-1
- Linkpillow.readthedocs.io/en/latest/releasenotes/6.2.0.html
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYDXD7EE4YAEVSTNIFZKNVPRVJX5ZOG3
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EMJBUZQGQ2Q7HXYCQVRLU7OXNC7CAWWU
- Packagegithub.com/python-pillow/Pillow
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2019-110.yaml
- Advisorygithub.com/advisories/GHSA-j7mj-748x-7p78
- Linkaccess.redhat.com/errata/RHSA-2020:0694
- Linkaccess.redhat.com/errata/RHSA-2020:0683
- Linkaccess.redhat.com/errata/RHSA-2020:0681
- Linkaccess.redhat.com/errata/RHSA-2020:0580
- Linkaccess.redhat.com/errata/RHSA-2020:0578
- Linkaccess.redhat.com/errata/RHSA-2020:0566
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.