Critical Security Vulnerability in python-imaging Package: CVE-2020-5312

python-imaging Updated 02 Oct 2025

Summary

14/09/2024
N/A
Yes i
Critical
9.8

RHSA-2020:0898: Red Hat Security Advisory: python-imaging security update. Affects python-imaging versions < 0:1.1.6-20.el6_10. Fixed in 0:1.1.6-20.el6_10. How to fix ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

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

The python-imaging package is a widely used library in the Red Hat Enterprise Linux ecosystem, providing essential functionalities for image processing. It allows developers to create, manipulate, and convert images in various formats. However, this package has been identified as vulnerable to a critical security issue that could potentially compromise system integrity and data confidentiality.

Vulnerability Detail

CVE-2020-5312 is a critical vulnerability affecting the python-imaging package, which can lead to arbitrary code execution and denial of service. The vulnerability originates from improper handling of image files, allowing an attacker to craft a malicious image that, when processed, could execute arbitrary code on the host system. This poses significant risks, including unauthorized access to sensitive data and potential system takeover.

How To Fix

Minimum fixed version

0:1.1.6-20.el6_10

This is the first release that contains the fix.

sudo dnf update python-imaging

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

Workaround

If immediate patching is not feasible, consider disabling the processing of untrusted image files until the package can be updated. This can be done by implementing strict validation checks on image inputs in your application code.

Conclusion

The python-imaging package is vulnerable to a critical security issue (CVE-2020-5312) that can lead to severe consequences if not addressed. Updating to the patched version is crucial for maintaining system security. Utilize tools like Vulert to monitor and manage vulnerabilities effectively.

See every vulnerability recorded for python-imaging →

Share this vulnerability

FAQ

CVE-2020-5312 is a critical vulnerability in the python-imaging package that allows for arbitrary code execution through malicious image files.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The vulnerability can lead to unauthorized access, data breaches, and complete system compromise, making it critical to address promptly.

Yes, a patch is available in version 0:1.1.6-20.el6_10 of the python-imaging package.

As a temporary measure, disable the processing of untrusted image files in your application to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for python-imaging.

How To Fix

Minimum fixed version

0:1.1.6-20.el6_10

This is the first release that contains the fix.

sudo dnf update python-imaging

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