Out-of-bounds read in Pillow - CVE-2021-25287
Published: April 13, 2021
Vulnerability identifier: #VU52187
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-25287
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Affected software:
Pillow
openSUSE Leap
Ubuntu
Fedora
python3-pil (Ubuntu package)
python-pil (Ubuntu package)
mingw-python-pillow
python-pillow
python-Pillow-debuginfo
python3-Pillow-tk
python-Pillow-debugsource
python3-Pillow
python3-Pillow-tk-debuginfo
python3-Pillow-debuginfo
Pillow
openSUSE Leap
Ubuntu
Fedora
python3-pil (Ubuntu package)
python-pil (Ubuntu package)
mingw-python-pillow
python-pillow
python-Pillow-debuginfo
python3-Pillow-tk
python-Pillow-debugsource
python3-Pillow
python3-Pillow-tk-debuginfo
python3-Pillow-debuginfo
Detailed vulnerability description
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists due to a boundary condition in Jpeg2KDecode method. A remote attacker can create a specially crafted J2k image, trigger out-of-bounds read error and read contents of memory on the system.
How to mitigate CVE-2021-25287
Install updates from vendor's website.