Moderate: python-pillow buffer overflow in _imagingcms.c

python3-pillow Updated 02 Oct 2025

Summary

02/07/2024
N/A
Yes i
Unrated
Not published

ALSA-2024:4227: Moderate: python-pillow security update. Affects python3-pillow versions < 5.1.1-21.el8_10. Fixed in 5.1.1-21.el8_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

python-pillow is a Python image processing library that offers support for various file formats, efficient internal representation, and powerful image-processing capabilities. It is widely used in applications that require image manipulation and processing.

Vulnerability Detail

A buffer overflow vulnerability has been discovered in the _imagingcms.c module of python-pillow. This vulnerability could allow an attacker to overwrite adjacent memory locations, potentially leading to arbitrary code execution or a denial of service (DoS) condition. The vulnerability is identified as CVE-2024-28219.

How To Fix

Minimum fixed version

5.1.1-21.el8_10

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 →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the security update as soon as possible to mitigate the risk of exploitation.

Conclusion

The buffer overflow vulnerability in python-pillow can be mitigated by updating the package to the recommended version. It is crucial to apply the security update promptly to protect systems from potential exploitation.

See every vulnerability recorded for python3-pillow →

Share this vulnerability

FAQ

Python-pillow is a Python library used for image processing and manipulation. It provides support for various file formats and offers powerful image-processing capabilities.

The buffer overflow vulnerability in python-pillow could allow an attacker to execute arbitrary code or cause a denial of service (DoS) condition on the affected system.

To fix this vulnerability, update the python-pillow package to version 5.1.1-21.el8_10 or later. This update includes a patch that addresses the buffer overflow issue.

No, there is no known workaround for this vulnerability. It is crucial to apply the security update to protect against potential exploitation.

You can find more information about this vulnerability, including the CVE identifier, on the official CVE page referenced in the 'References' section of the vulnerability details.

Related vulnerabilities

Recent vulnerabilities recorded for python3-pillow.

How To Fix

Minimum fixed version

5.1.1-21.el8_10

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