Skip to content
OpenAdvisories
High · 7.5 CVE-2021-25291 BIT-pillow-2021-25291EUVD-2021-0174GHSA-mvg9-xffr-p774PYSEC-2021-37

Out of bounds read in Pillow

Published Mar 19, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.

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.1-1 —
Debian 13 pillow 8.1.1-1 —
Debian 12 pillow 8.1.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS pillow 7.0.0-4ubuntu0.3 USN-4763-1
Ubuntu 18.04 LTS pillow 5.1.0-1ubuntu0.5 USN-4763-1
Ubuntu 16.04 LTS pillow 3.1.2-0ubuntu1.6 USN-4763-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS pillow-python2 No fix yet —
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.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.1.2-r0 —
Alpine v3.23 py3-pillow 8.1.2-r0 —
Alpine v3.22 py3-pillow 8.1.2-r0 —
Alpine v3.21 py3-pillow 8.1.2-r0 —
Alpine v3.20 py3-pillow 8.1.2-r0 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-pillow 8.1.2-r0 —
Alpine v3.18 py3-pillow 8.1.2-r0 —
Alpine v3.17 py3-pillow 8.1.2-r0 —
Alpine v3.16 py3-pillow 8.1.2-r0 —
Alpine v3.15 py3-pillow 8.1.2-r0 —
Alpine v3.14 py3-pillow 8.1.2-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-pillow +2 9.4.0-2.amzn2023.0.1 ALAS2023-2023-146

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pillow < 8.2.0 8.2.0 GHSA-mvg9-xffr-p774
PyPI pillow < 8.1.1 8.1.1 PYSEC-2021-37

Advisories 6

References