Advisory

PYSEC-2026-4330

Also known as: BIT-pillow-2026-112398, CVE-2026-112398, GHSA-5x8w-8jj5-q52h

Summary

The record has no summary.

Details

Pillow is a Python imaging library. Prior to 13.0.0, Pillow's FlashPix JPEG-tile decoder can write decoded scanlines beyond the allocated tile buffer. FlashPix (FPX) JPEG decoding selects raw mode LA with two bytes per pixel, while an unrecognized JPEG mode can be decoded as JCS_UNKNOWN with four components, causing ImagingJpegDecode to write four-component scanlines into the two-byte tile buffer. An attacker can supply a crafted OLE2 FlashPix file to an application with the optional olefile dependency installed that opens or thumbnails untrusted input. This can corrupt heap memory and may allow arbitrary code execution. This issue is fixed in version 13.0.0.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-10-19 22:17 UTC
Modified
2026-10-28 11:10 UTC

Affected packages and fixes

pillow

PyPI · All systems

Affected

  • introduced 0, fixed 13.0.0 (ecosystem)

Fixed versions

13.0.0

Fix

  • Fixed version 13.0.0
    pip install --upgrade pillow==13.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences