Skip to content
OpenAdvisories
Critical · 9.1 CVE-2021-25288 BIT-pillow-2021-25288EUVD-2021-0168GHSA-rwv7-3v45-hg29PYSEC-2021-138

Pillow Out-of-bounds Read vulnerability

Published Jun 2, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_gray_i.

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.2 —
Debian 13 pillow 8.1.2+dfsg-0.2 —
Debian 12 pillow 8.1.2+dfsg-0.2 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS pillow 7.0.0-4ubuntu0.4 USN-4963-1
Ubuntu 18.04 LTS pillow 5.1.0-1ubuntu0.6 USN-4963-1
Show 2 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+esm3 —
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
SUSE OpenStack Cloud Crowbar 9 python-Pillow 5.2.0-3.8.1 SUSE-SU-2021:1938-1
SUSE OpenStack Cloud Crowbar 8 python-Pillow 4.2.1-3.14.1 SUSE-SU-2021:1939-1
SUSE OpenStack Cloud 9 python-Pillow 5.2.0-3.8.1 SUSE-SU-2021:1938-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud 8 python-Pillow 4.2.1-3.14.1 SUSE-SU-2021:1939-1
SUSE OpenStack Cloud 7 python-Pillow 2.8.1-4.22.1 SUSE-SU-2021:1940-1
SUSE HPE Helion OpenStack 8 python-Pillow 4.2.1-3.14.1 SUSE-SU-2021:1939-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 python-Pillow 7.2.0-150300.3.12.1 SUSE-SU-2024:1607-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-pillow 8.2.0-r0 —
Alpine v3.23 py3-pillow 8.2.0-r0 —
Alpine v3.22 py3-pillow 8.2.0-r0 —
Alpine v3.21 py3-pillow 8.2.0-r0 —
Alpine v3.20 py3-pillow 8.2.0-r0 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-pillow 8.2.0-r0 —
Alpine v3.18 py3-pillow 8.2.0-r0 —
Alpine v3.17 py3-pillow 8.2.0-r0 —
Alpine v3.16 py3-pillow 8.2.0-r0 —
Alpine v3.15 py3-pillow 8.2.0-r0 —
Alpine v3.14 py3-pillow 8.2.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pillow >= 2.4.0, < 8.2.0 8.2.0 GHSA-rwv7-3v45-hg29
PyPI pillow < 8.2.0 8.2.0 PYSEC-2021-138

Advisories 9

References