Vulnerabilities / CVE-2021-25288

critical

CVE-2021-25288

python-pillow: Out-of-bounds read in J2K image reader

Published Modified CWE 125
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
GHSA8.8CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Bitnami9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami. Rated lower by GHSA (high), Red Hat (medium), AlmaLinux (medium), Rocky Linux (medium), Ubuntu (low).

Description

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

Affected packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasepillow8.2.0
alma 8python3-pillow5.1.1-16.el8
alpine 3.14py3-pillow8.2.0-r0
alpine 3.15py3-pillow8.2.0-r0
alpine 3.16py3-pillow8.2.0-r0
alpine 3.17py3-pillow8.2.0-r0
alpine 3.18py3-pillow8.2.0-r0
alpine 3.19py3-pillow8.2.0-r0
alpine 3.20py3-pillow8.2.0-r0
alpine 3.21py3-pillow8.2.0-r0
alpine 3.22py3-pillow8.2.0-r0
alpine 3.23py3-pillow8.2.0-r0
Show all 45 entries from 40 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasepillow8.2.0
alma 8python3-pillow5.1.1-16.el8
alpine 3.14py3-pillow8.2.0-r0
alpine 3.15py3-pillow8.2.0-r0
alpine 3.16py3-pillow8.2.0-r0
alpine 3.17py3-pillow8.2.0-r0
alpine 3.18py3-pillow8.2.0-r0
alpine 3.19py3-pillow8.2.0-r0
alpine 3.20py3-pillow8.2.0-r0
alpine 3.21py3-pillow8.2.0-r0
alpine 3.22py3-pillow8.2.0-r0
alpine 3.23py3-pillow8.2.0-r0
alpine 3.24py3-pillow8.2.0-r0
alpine edgepy3-pillow8.2.0-r0
debian 11pillow8.1.2+dfsg-0.2
debian 12pillow8.1.2+dfsg-0.2
debian 13pillow8.1.2+dfsg-0.2
debian 14pillow8.1.2+dfsg-0.2
echopillow8.1.2+dfsg-0.2
pip::GitHub Security Advisory pippillow8.2.0
Red Hatpython-pillowno fix listed
Red Hatpython-pillow-develno fix listed
Red Hatpython-pillow-docno fix listed
Red Hatpython-pillow-qtno fix listed
Red Hatpython-pillow-saneno fix listed
Red Hatpython-pillow-tkno fix listed
rocky 8python3-pillow5.1.1-16.el8
ubuntu 16.04-ESMpillow3.1.2-0ubuntu1.6+esm3
ubuntu 18.04pillow5.1.0-1ubuntu0.6
ubuntu 18.04-ESMpillow5.1.0-1ubuntu0.6
ubuntu 20.04pillow7.0.0-4ubuntu0.4
ubuntu 20.04-ESMpillow7.0.0-4ubuntu0.4
ubuntu 20.10pillow7.2.0-1ubuntu0.3
ubuntu 21.04pillow8.1.2-1ubuntu0.1
ubuntu 21.10pillow8.1.2+dfsg-0.1ubuntu1
ubuntu 22.04pillow8.1.2+dfsg-0.1ubuntu1
ubuntu 22.10pillow8.1.2+dfsg-0.1ubuntu1
ubuntu 23.04pillow8.1.2+dfsg-0.1ubuntu1
ubuntu 23.10pillow8.1.2+dfsg-0.1ubuntu1
ubuntu 24.04pillow8.1.2+dfsg-0.1ubuntu1
ubuntu 24.10pillow8.1.2+dfsg-0.1ubuntu1
ubuntu 25.04pillow8.1.2+dfsg-0.1ubuntu1
ubuntu 25.10pillow8.1.2+dfsg-0.1ubuntu1
ubuntu 26.04pillow8.1.2+dfsg-0.1ubuntu1
ubuntu 26.10pillow8.1.2+dfsg-0.1ubuntu1

References

All 47 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.