Zero Day MonitorZDM
DashboardVulnerabilitiesTrendingZero-DaysNewsAbout
Login
ImpressumPrivacy Policy
Zero Day Monitor © 2026
4068 articles · 260936 vulns · 37/41 feeds (7d)
← Back to list
—
CVE-2026-112398PATCHED
python · pillow

Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution

Description

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.

Affected Products

VendorProductVersions
pythonpillowpip/pillow: <= 12.3.0

Also Affects

Downstream vendors/products affected by this vulnerability

VendorProductSourceConfidence
red hatenterprise linuxcert_advisory90%

References

  • https://github.com/python-pillow/Pillow/security/advisories/GHSA-5x8w-8jj5-q52h(x_refsource_CONFIRM)
  • https://github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75(x_refsource_MISC)
  • https://github.com/python-pillow/Pillow/releases/tag/13.0.0(x_refsource_MISC)

Related News (3 articles)

Tier B
BSI Advisories3d ago
[NEU] [hoch] Red Hat Enterprise Linux (perl-yaml, pillow): Mehrere Schwachstellen
→ No new info (linked only)
Tier C
oss-security15d ago
Pillow 13.0.0 fixes long list of vulnerabilities
→ No new info (linked only)
Tier C
VulDB17d ago
CVE-2026-112398 | Python Pillow up to 12.x FlashPix JPEG-tile decoder ImagingJpegDecode buffer overflow
→ No new info (linked only)

Discussion (0)

Loading…

CISA KEV❌ No
Actively exploited❌ No
Patch available
pillow@13.0.0
CWECWE-122, CWE-787
PublishedOct 19, 2026
Last enriched17d agov2
Trending Score39
Source articles3
Independent3
Info Completeness8/14
Missing: cvss, epss, kev, exploit, iocs, mitre_attack

Community Vote

0
Login to vote
0 upvotes0 downvotes
No votes yet

Related CVEs (5)

CRITICALCVE-2026-112900
Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
Trending: 43
CRITICALCVE-2026-112393
Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
Trending: 39
HIGHCVE-2026-112894
Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
Trending: 30
HIGHCVE-2026-112402
Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
Trending: 30
HIGHCVE-2026-112392
Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
Trending: 30

Pin to Dashboard

Verification

State: unverified
Confidence: 0%

Vulnerability Timeline

CVE Published
Oct 19, 2026
Discovered by ZDM
Oct 19, 2026
Updated: severity, patchAvailable
Oct 19, 2026
Patch Available
Oct 22, 2026

Version History

v2
Last enriched 17d ago
v2Tier C17d ago

Updated severity from NONE to CRITICAL and confirmed patchAvailable version 13.0.0.

severitypatchAvailable
via VulDB
v117d ago

Initial creation