---
title: "CVE-2021-25289"
canonical_url: "https://pkgseek.com/security/CVE-2021-25289"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "critical"
---

# CVE-2021-25289

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.

CVE-2021-25289 is rated CRITICAL (9.8), with 5 indexed affected package builds across 1 distributions.

- **Severity / Score**: CRITICAL (9.8)
- **Affected builds**: 5
- **Affected distros**: 1
- **Distros with fixed_in**: Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | focal | python3-pil | 7.0.0-4build1 | 7.0.0-4ubuntu0.3 |
| Ubuntu | focal | python3-pil-dbg | 7.0.0-4build1 | 7.0.0-4ubuntu0.3 |
| Ubuntu | focal | python3-pil.imagetk | 7.0.0-4build1 | 7.0.0-4ubuntu0.3 |
| Ubuntu | focal | python3-pil.imagetk-dbg | 7.0.0-4build1 | 7.0.0-4ubuntu0.3 |
| Ubuntu | focal | python-pil-doc | 7.0.0-4build1 | 7.0.0-4ubuntu0.3 |
