CVE-2020-10379: Buffer Overflows in Pillow libImaging/TiffDecode.c

pillow Updated 02 Oct 2025

Summary

06/03/2024
Yes i
High
Not published

CVE-2020-10379: In Pillow before 7.1.0, there are two Buffer Overflows in libImaging/TiffDecode.c. Affects pillow versions < 7.1.0. Fixed in 7.1.0. How to fix ↓

Also tracked for

The same CVE-2020-10379 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Pillow is an open-source Python library for image processing and manipulation. It provides a wide range of functions and supports various image file formats. However, versions prior to 7.1.0 of Pillow are vulnerable to two Buffer Overflows in the libImaging/TiffDecode.c module. These vulnerabilities can be exploited by an attacker to execute arbitrary code or cause a denial of service.

Vulnerability Detail

The Buffer Overflows in libImaging/TiffDecode.c in Pillow before 7.1.0 can occur due to improper bounds checking when processing TIFF image files. This can lead to a buffer overflow, allowing an attacker to overwrite adjacent memory and potentially execute arbitrary code. The vulnerabilities can be triggered by a specially crafted TIFF file, and successful exploitation could result in remote code execution or a crash of the application.

How To Fix

Minimum fixed version

7.1.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid processing untrusted TIFF image files until the vulnerability is patched. Additionally, it is recommended to implement proper input validation and sanitization when handling image files to mitigate the risk of exploitation.

Conclusion

In conclusion, the Buffer Overflows in Pillow's libImaging/TiffDecode.c module pose a significant security risk. It is crucial to upgrade to Pillow version 7.1.0 or later to mitigate these vulnerabilities. Users should also exercise caution when handling image files and implement proper input validation to prevent potential exploitation. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pillow →

Share this vulnerability

FAQ

Pillow is an open-source Python library for image processing and manipulation. It provides various functions and supports multiple image file formats.

The vulnerabilities can allow an attacker to execute arbitrary code or cause a denial of service. Successful exploitation could result in remote code execution or a crash of the application.

To fix the vulnerability, it is recommended to upgrade to Pillow version 7.1.0 or later. Users can update their Pillow installation through package managers or by manually installing the latest version from the official repository.

As a temporary workaround, users can avoid processing untrusted TIFF image files until the vulnerability is patched. It is also important to implement proper input validation and sanitization when handling image files.

You can find more information about the vulnerability in the official vulnerability report provided by Bitnami.

Related vulnerabilities

Recent vulnerabilities recorded for pillow.

How To Fix

Minimum fixed version

7.1.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback