Buffer overflow in Pillow - CVE-2021-34552
Published: October 24, 2022
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when processing untrusted input. A remote attacker with ability to pass controlled parameters directly into a convert function can trigger memory corruption and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Gentoo Linux
Arch Linux
Fedora
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
HPE Helion Openstack
Ubuntu
python-Pillow
python-Pillow-debuginfo
python-Pillow-debugsource
python3-pil (Ubuntu package)
python-pil (Ubuntu package)
python3-pillow
python2-pillow
mingw-python-pillow
python-pillow
dev-python/pillow
How to mitigate CVE-2021-34552
python-Pillow - addressed in versions 2.8.1-4.25.1, 4.2.1-3.17.1, 5.2.0-3.11.1
python-Pillow-debuginfo - addressed in versions 2.8.1-4.25.1, 4.2.1-3.17.1, 5.2.0-3.11.1
python-Pillow-debugsource - addressed in versions 2.8.1-4.25.1, 4.2.1-3.17.1, 5.2.0-3.11.1
python3-pil (Ubuntu package) - addressed in versions 3.1.20ubuntu1.6+esm1, 5.1.0-1ubuntu0.7, 5.1.0-1ubuntu0.8, 7.0.0-4ubuntu0.5, 7.0.0-4ubuntu0.6, 8.1.2+dfsg-0.3ubuntu0.1, 8.1.2-1ubuntu0.2
python-pil (Ubuntu package) - addressed in versions 3.1.20ubuntu1.6+esm1, 5.1.0-1ubuntu0.7, 5.1.0-1ubuntu0.8
python3-pillow - update to 6.2.2-3.el7
python2-pillow - update to 6.2.2-6.fc33
mingw-python-pillow - addressed in versions 7.2.0-7.fc33, 8.1.2-3.fc34
python-pillow - addressed in versions 7.2.0-7.fc33, 8.1.2-4.fc34
python-pillow - update to 8.3.0-1
dev-python/pillow - update to 9.3.0
External References
- https://pillow.readthedocs.io/en/stable/releasenotes/index.html
- https://pillow.readthedocs.io/en/stable/releasenotes/8.3.0.html#buffer-overflow
- https://lists.debian.org/debian-lts-announce/2021/07/msg00018.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7V6LCG525ARIX6LX5QRYNAWVDD2MD2SV/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VUGBBT63VL7G4JNOEIPDJIOC34ZFBKNJ/
Related Security Bulletins
- Buffer overflow in Pillow
- Ubuntu update for pillow
- Gentoo update for Pillow
- SUSE update for python-Pillow
- SUSE update for python-Pillow
- SUSE update for python-Pillow
- Ubuntu update for pillow
- Ubuntu update for pillow
- Arch Linux update for python-pillow
- Fedora 33 update for mingw-python-pillow, python-pillow, python2-pillow
- Fedora 34 update for mingw-python-pillow, python-pillow
- Fedora EPEL 7 update for python3-pillow