REDHAT-BUG-2497455: High severity Pillow Pillow vulnerability

Published Jul 6, 2026
·
Updated

Pillow is a Python imaging library. Prior to 12.3.0, PIL/GdImageFile.py GdImageFile.open() read image dimensions from the GD 2.x header and stored them in self.size without calling Image.decompressionbombcheck(), allowing a crafted .gd file to trigger excessive C-heap allocation when loaded. This issue is fixed in version 12.3.0.

Affected Software

1 affected component
Pillow Pillow<12.3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Pillow to a version that resolves this vulnerability.

    Fixed in 12.3.0

Event History

Jul 6, 2026
Data Sourced
via Red Hat·08:02 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2497455?

The severity of REDHAT-BUG-2497455 is rated as high with a score of 7.

2

How do I fix REDHAT-BUG-2497455?

To fix REDHAT-BUG-2497455, update Pillow to version 12.3.0 or later.

3

What is the main risk associated with REDHAT-BUG-2497455?

The main risk is that a crafted .gd file can lead to excessive C-heap allocation.

4

Which library is affected by REDHAT-BUG-2497455?

The affected library is Pillow, specifically the GdImageFile.py component.

5

What issue does REDHAT-BUG-2497455 exploit?

REDHAT-BUG-2497455 exploits the failure to call Image._decompression_bomb_check() when reading image dimensions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203