CVE-2020-11538: Out-of-Bounds Read Vulnerability in Pillow

pillow Updated 02 Oct 2025

Summary

06/03/2024
Yes i
High
Not published

CVE-2020-11538: In libImaging/SgiRleDecode.c in Pillow through 7.0.0, a number of out-of-bounds reads exist in the parsing of SGI image files, a different issue than CVE-2020-5311. Affects pillow versions < 7.0.1. Fixed in 7.0.1. How to fix ↓

Also tracked for

The same CVE-2020-11538 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 library used for image processing tasks. It provides a wide range of functionality for opening, manipulating, and saving various image file formats. However, the library is susceptible to an out-of-bounds read vulnerability in the parsing of SGI image files.

Vulnerability Detail

The vulnerability, identified as CVE-2020-11538, allows an attacker to read data outside the boundaries of an allocated buffer. This issue arises due to improper bounds checking during the parsing of SGI image files. An attacker could exploit this vulnerability to disclose sensitive information or potentially execute arbitrary code on a system.

How To Fix

Minimum fixed version

7.0.1

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

No workaround has been provided for this vulnerability. It is essential to apply the recommended fix by updating the Pillow library to the latest version.

Conclusion

In conclusion, the CVE-2020-11538 vulnerability in Pillow exposes systems to potential data disclosure or arbitrary code execution. It is crucial to update the Pillow library to version 7.0.0 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pillow →

Share this vulnerability

FAQ

Pillow is a Python library used for image processing tasks, such as opening, manipulating, and saving various image file formats.

This vulnerability could allow an attacker to read sensitive data or potentially execute arbitrary code on a system.

To fix this vulnerability, update the Pillow library to version 7.0.0 or later.

No workaround has been provided for this vulnerability. Updating the library to the fixed version is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for pillow.

How To Fix

Minimum fixed version

7.0.1

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