CVE-2020-10379: Buffer overflow in Pillow
Summary
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.
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.
No signup required · Results in about 60 seconds
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 →
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.
You can find more information about this vulnerability in the official GitHub advisory: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/07/GHSA-8843-m7mw-mxqm/GHSA-8843-m7mw-mxqm.json
References
Related vulnerabilities
Recent vulnerabilities recorded for pillow.