Skip to main content
EPSS 1.0%top 39%

In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy. (CVE-2024-28219)

0
Medium
Published: 07/02/2024 (07/02/2024, 07:31:57 UTC)
Source: GCVE Database
Product: pillow

Description

A buffer overflow vulnerability exists in the _imagingcms.c component of the Pillow library before version 10.3.0 due to the use of strcpy instead of strncpy. This issue is tracked as CVE-2024-28219 and has been rated as moderate severity by Red Hat Product Security. The vulnerability affects python-pillow packages distributed with Red Hat Enterprise Linux 8 and related variants. A security update addressing this flaw is available from Red Hat.

Affected software

Affected versions
<10.3.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 15:16:30 UTC

Technical Analysis

CVE-2024-28219 describes a buffer overflow vulnerability in the _imagingcms.c source file of the Pillow image processing library prior to version 10.3.0. The flaw arises because the unsafe strcpy function is used instead of the safer strncpy, potentially allowing memory corruption. Red Hat has issued an advisory (RHSA-2024:4227) for python-pillow packages in Red Hat Enterprise Linux 8 and related distributions, providing updated packages that fix this issue. No CVSS score is provided, but the vendor rates the impact as moderate. There are no known exploits in the wild.

Potential Impact

The vulnerability could lead to a buffer overflow condition in applications using vulnerable versions of Pillow, potentially causing crashes or memory corruption. The Red Hat advisory classifies the impact as moderate. No active exploitation has been reported.

Mitigation Recommendations

Red Hat has released updated python-pillow packages for Red Hat Enterprise Linux 8 and related variants that fix this buffer overflow vulnerability. Users should apply the security update as described in Red Hat advisory RHSA-2024:4227 and the referenced update article (https://access.redhat.com/articles/11258). No additional mitigation steps are indicated by the vendor.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Red Hat Product Security
Advisory Id
RHSA-2024:4227
Cve Count
1

Threat ID: 6a1f4ea2e29bf47b5008873a

Added to database: 06/02/2026, 21:44:02 UTC

Last enriched: 09/08/2026, 15:16:30 UTC

Last updated: 09/10/2026, 19:36:48 UTC

Views: 89

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses