Important: python-pillow security update

python3-pillow Updated 02 Oct 2025

Summary

22/02/2022
N/A
Yes i
Unrated
Not published

ALSA-2022:0643: Important: python-pillow security update. Affects python3-pillow versions < 5.1.1-18.el8_5. Fixed in 5.1.1-18.el8_5. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The python-pillow packages contain a Python image processing library that provides extensive file format support, an efficient internal representation, and powerful image-processing capabilities. It is widely used in various applications for image manipulation and processing.

Vulnerability Detail

The vulnerability (CVE-2022-22817) in python-pillow is related to the PIL.ImageMath.eval function, which allows the evaluation of arbitrary expressions. This can lead to potential code execution vulnerabilities if untrusted input is passed to the function. Another vulnerability (CVE-2022-22816) involves a buffer over-read during the initialization of ImagePath.Path in path_getbbox() in path.c. An attacker could exploit this to read uninitialized or out-of-bounds memory, potentially leading to information disclosure or crashes.

How To Fix

Minimum fixed version

5.1.1-18.el8_5

This is the first release that contains the fix.

sudo dnf update python3-pillow

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

Conclusion

It is crucial to update the python-pillow package to the latest version (5.1.1-18.el8_5 or later) to address the identified security vulnerabilities. Failure to do so may expose your application to potential code execution or information disclosure risks. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for python3-pillow →

Share this vulnerability

FAQ

Python-pillow is a Python image processing library that provides extensive file format support and powerful image-processing capabilities.

The vulnerabilities can potentially allow attackers to execute arbitrary code or read uninitialized/out-of-bounds memory, leading to information disclosure or crashes.

No, only versions prior to 5.1.1-18.el8_5 are affected. It is recommended to update to the latest version to mitigate the vulnerabilities.

No specific workaround has been provided. It is recommended to update to the patched version of python-pillow.

You can find more information about these vulnerabilities in the CVE pages listed in the References section of the vulnerability details.

Related vulnerabilities

Recent vulnerabilities recorded for python3-pillow.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

5.1.1-18.el8_5

This is the first release that contains the fix.

sudo dnf update python3-pillow

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