Bug 2558567 (CVE-2026-96778) - CVE-2026-96778 pillow: pillow: Arbitrary code execution via JPEG encoder buffer overflow
Summary: CVE-2026-96778 pillow: pillow: Arbitrary code execution via JPEG encoder buff...
Keywords:
Status: NEW
Alias: CVE-2026-96778
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-21 21:06 UTC by OSIDB Bzimport
Modified: 2026-11-19 19:30 UTC (History)
58 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:100715 0 None None None 2026-11-19 19:30:04 UTC
Red Hat Product Errata RHSA-2026:95655 0 None None None 2026-11-05 19:45:22 UTC
Red Hat Product Errata RHSA-2026:95656 0 None None None 2026-11-05 19:41:42 UTC
Red Hat Product Errata RHSA-2026:95657 0 None None None 2026-11-05 19:44:02 UTC

Description OSIDB Bzimport 2026-10-21 21:06:53 UTC
Pillow is a Python imaging library. From 9.4.0 until 13.0.0, ImagingJpegEncode() in src/libImaging/JpegEncode.c can call jpeg_write_marker() for a JPEG COM comment when an ICC profile has exactly filled the 65536-byte encoder buffer. libjpeg writes one byte before checking the exhausted free_in_buffer counter, which then wraps and permits the attacker-controlled comment and subsequent compressed image data to overwrite adjacent heap memory. Re-saving an untrusted image as JPEG while preserving its ICC profile and forwarded comment can crash the process and may enable code execution in suitable runtime and heap layouts. This issue is fixed in version 13.0.0.

Comment 4 Jon Orris 2026-11-05 19:41:39 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.17 for RHEL 9

Via RHSA-2026:95656 https://access.redhat.com/errata/RHSA-2026:95656

Comment 5 Jon Orris 2026-11-05 19:43:58 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.18 for RHEL 9

Via RHSA-2026:95657 https://access.redhat.com/errata/RHSA-2026:95657

Comment 6 Jon Orris 2026-11-05 19:45:19 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.16 for RHEL 8
  Red Hat Satellite 6.16 for RHEL 9

Via RHSA-2026:95655 https://access.redhat.com/errata/RHSA-2026:95655

Comment 7 errata-xmlrpc 2026-11-19 19:30:00 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.6 for RHEL 9
  Red Hat Ansible Automation Platform 2.6 for RHEL 10

Via RHSA-2026:100715 https://access.redhat.com/errata/RHSA-2026:100715


Note You need to log in before you can comment on or make changes to this bug.