CVE-2021-25289: Buffer Overflow

Published Feb 28, 2021
·
Updated

A flaw was found in python-pillow. TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode. The previous fix for CVE-2020-35654 was insufficient due to incorrect error checking in TiffDecode.c. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Other sources

An issue was discovered in Pillow before 8.1.1. TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode. NOTE: this issue exists because of an incomplete fix for CVE-2020-35654.

The previous fix for CVE-2020-35654 was insufficient due to incorrect error checking in TiffDecode.c.

Reference: https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html

Red Hat

Affected Software

3 affected componentsFixes available
redhat/python-pillow<8.1.1
8.1.1
pip/pillow>=0<8.1.1
8.1.1
Python Pillow<8.1.1

Remediation

Information

Disable the invoice generation feature to mitigate this vulnerability in Red Hat Quay.

Event History

Feb 28, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 19, 2021
CVE Published
via MITRE·03:29 AM
Data Sourced
via MITRE·03:29 AM
Description
Mar 29, 2021
Advisory Published
via GitHub·04:35 PM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-25289?

CVE-2021-25289 is a vulnerability in Pillow, a Python Imaging Library, that allows a heap-based buffer overflow when decoding crafted YCbCr files.

2

What is the severity of CVE-2021-25289?

The severity of CVE-2021-25289 is critical with a CVSS score of 9.8 out of 10.

3

How does CVE-2021-25289 affect Pillow?

CVE-2021-25289 affects Pillow by causing a heap-based buffer overflow when decoding certain YCbCr files.

4

How can I fix CVE-2021-25289?

To fix CVE-2021-25289, upgrade to version 8.1.1 of python-pillow.

5

Where can I find more information about CVE-2021-25289?

You can find more information about CVE-2021-25289 in the references provided: https://access.redhat.com/security/cve/CVE-2020-35654, https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html, and https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1934683.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203