Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-34552 BIT-pillow-2021-34552EUVD-2021-0171GHSA-7534-mm45-c74vPYSEC-2021-331

Buffer Overflow in Pillow

Published Jul 13, 2021 · Updated Aug 4, 2024 · Assigned by mitre

Description

Pillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters directly into a convert function to trigger a buffer overflow in Convert.c.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pillow 8.1.2+dfsg-0.3 —
Debian 13 pillow 8.1.2+dfsg-0.3 —
Debian 12 pillow 8.1.2+dfsg-0.3 —
Debian 9 pillow 4.0.0-4+deb9u3 DLA-2716-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS pillow 7.0.0-4ubuntu0.5 USN-5227-1
Ubuntu 18.04 LTS pillow 5.1.0-1ubuntu0.7 USN-5227-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS pillow-python2 No fix yet —
Ubuntu Pro 16.04 LTS pillow 3.1.2-0ubuntu1.6+esm1 USN-5227-2
Ubuntu Pro 14.04 LTS pillow 2.3.0-1ubuntu3.4+esm3 USN-5227-2
ReleasePackageFixed inAdvisory
RHEL 8 python-pillow +1 5.1.1-16.el8 RHSA-2021:4149

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 python3-pillow 5.1.1-16.el8 ALSA-2021:4149

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 python-pillow 5.1.1-16.el8 RLSA-2021:4149
ReleasePackageFixed inAdvisory
SLES 15 SP6 python-Pillow 7.2.0-150300.3.15.1 SUSE-SU-2024:1673-2
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud Crowbar 9 python-Pillow 5.2.0-3.11.1 SUSE-SU-2021:2631-1
SUSE OpenStack Cloud Crowbar 8 python-Pillow 4.2.1-3.17.1 SUSE-SU-2021:2632-1
SUSE OpenStack Cloud 9 python-Pillow 5.2.0-3.11.1 SUSE-SU-2021:2631-1
SUSE OpenStack Cloud 8 python-Pillow 4.2.1-3.17.1 SUSE-SU-2021:2632-1
SUSE OpenStack Cloud 7 python-Pillow 2.8.1-4.25.1 SUSE-SU-2021:2595-1
SUSE HPE Helion OpenStack 8 python-Pillow 4.2.1-3.17.1 SUSE-SU-2021:2632-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Pillow 8.3.2-1.2 openSUSE-SU-2026:11261-1, openSUSE-SU-2024:13827-1, openSUSE-SU-2024:11209-1
openSUSE Leap 15.5 python-Pillow 7.2.0-150300.3.15.1 SUSE-SU-2024:1673-1
openSUSE Leap 15.2 python-CairoSVG 2.5.1-lp152.2.3.1 openSUSE-SU-2021:1134-1
openSUSE Leap 15.2 python-Pillow 8.3.1-lp152.5.3.1 openSUSE-SU-2021:1134-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-pillow 8.3.0-r0 —
Alpine v3.23 py3-pillow 8.3.0-r0 —
Alpine v3.22 py3-pillow 8.3.0-r0 —
Alpine v3.21 py3-pillow 8.3.0-r0 —
Alpine v3.20 py3-pillow 8.3.0-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-pillow 8.3.0-r0 —
Alpine v3.18 py3-pillow 8.3.0-r0 —
Alpine v3.17 py3-pillow 8.3.0-r0 —
Alpine v3.16 py3-pillow 8.3.0-r0 —
Alpine v3.15 py3-pillow 8.3.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-pillow +2 9.4.0-2.amzn2023.0.1 ALAS2023-2023-146
Amazon Linux 2 python-pillow +4 2.0.0-23.gitd1c6db8.amzn2.0.4 ALAS2-2023-2083

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pillow < 8.3.0 8.3.0 GHSA-7534-mm45-c74v

Advisories 18

References