CVE-2020-10379: Buffer overflow in Pillow

pillow Updated 02 Oct 2025

Summary

27/07/2020
Yes i
High
7.8

CVE-2020-10379: Buffer overflow in Pillow. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Pillow is a popular Python imaging library that provides support for opening, manipulating, and saving many different image file formats. It is widely used in various applications for image processing and manipulation. However, versions of Pillow before 6.2.3 and 7.x before 7.0.1 are vulnerable to a buffer overflow issue in the libImaging/TiffDecode.c module.

Vulnerability Detail

The buffer overflow vulnerability in Pillow's libImaging/TiffDecode.c module allows an attacker to overwrite adjacent memory locations, potentially leading to arbitrary code execution or a denial of service condition. This vulnerability can be exploited by crafting a malicious TIFF image file and tricking a user or application into opening it. Successful exploitation of this vulnerability could result in the compromise of the affected system or application.

How To Fix

Latest published version: 13.0.0 as of 22 Oct 2026

pip install --upgrade "pillow==13.0.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

7.1.0

This is the first release that contains the fix.

pip install --upgrade "pillow==7.1.0"

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

Workaround

There is no known workaround for this vulnerability. It is essential to update to the fixed version of Pillow as soon as possible.

Conclusion

In conclusion, the buffer overflow vulnerability in Pillow's libImaging/TiffDecode.c module can lead to arbitrary code execution or a denial of service condition. It is crucial to update to the fixed version of Pillow (7.1.0 or later) to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pillow →

Share this vulnerability

FAQ

Pillow is a Python imaging library that provides support for opening, manipulating, and saving various image file formats.

This vulnerability can allow an attacker to execute arbitrary code or cause a denial of service condition on the affected system or application.

To fix this vulnerability, you should upgrade to version 7.1.0 or later of Pillow.

No, there is no known workaround for this vulnerability. Updating to the fixed version is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for pillow.

How To Fix

Latest published version: 13.0.0 as of 22 Oct 2026

pip install --upgrade "pillow==13.0.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

7.1.0

This is the first release that contains the fix.

pip install --upgrade "pillow==7.1.0"

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