Patch Forecast
Amber warning
Patch this week.

CVE-2026-112390 · GHSA-22hg-r758-rrw9

Pillow: Infinite loop in MIC n_frames when the embedded TIFF

Risk score
71/100
CVSS
7.5 v3.1
Exploit chance (30 days)
0.4%
Published
19 Oct 2026

Open in the live forecast Today's forecast

What to know

What it is
Pillow has an infinite loop vulnerability in MIC n_frames when the embedded TIFF has at least three IFDs, allowing an attacker to hold a worker at full CPU indefinitely.
Affected
{'product': 'pillow', 'package': 'Pillow', 'version': '>= 7.2.0, < 13.0.0'}
Fix
Upgrade to version 13.0.0 or later
Exploitation
Public proof of concept

Story map

Story map: PillowTHE FLAWSTHE FIXCVE-2026-112390Infinite loop in MIC n_frameswhen the embedded TIFFCVSS 7.5 · EPSS 0%CVE-2026-112391PdfParser can recurse withoutlimit in get_value() andlinearize_page_tree()CVSS 7.5 · EPSS 0%Upgrade Pillow13.0.0or later on your release lineWho is exposed{'product': 'pillow', 'package':'Pillow', 'version': '>= 7.2.0, <13.0.0'}AMBER · PATCH THIS WEEKPillowPillow has an infinite loopvulnerability in MIC n_frameswhen the embedded TIFF has atleast three IFDs, allowing anattacker to hold a worker at fullCPU indefinitely.Where it standsPublic proof of conceptCONNECTS TOSame weaknessCWE-835 (CWE-835)52 other warnings in 30 days →
Story map: the flaws, the fix, how it unfolded and what it connects to. Boxes link to the record or article.

At a glance

Pillow: Amber, patch this week. Pillow has an infinite loop vulnerability in MIC n_frames when the embedded TIFF has at least three IFDs, allowing an attacker to hold a worker at full CPU indefinitely.

The flaws

  • CVE-2026-112390: Infinite loop in MIC n_frames when the embedded TIFF (CVSS 7.5 · EPSS 0%)
  • CVE-2026-112391: PdfParser can recurse without limit in get_value() and linearize_page_tree() (CVSS 7.5 · EPSS 0%)

The fix

Upgrade Pillow: 13.0.0 or later on your release line

Who is exposed: {'product': 'pillow', 'package': 'Pillow', 'version': '>= 7.2.0, < 13.0.0'}

Where it stands

  • Public proof of concept

Connects to

Why it is Amber

  • CVSS 7.5 high
  • Public exploit or proof of concept referenced
  • Remotely exploitable without logging in
  • On your watchlist: python, PyPI

Affected packages

PackageEcosystemVulnerableFixed in
Pillowpip>= 7.2.0, < 13.0.013.0.0

References

Original description

Pillow is a Python imaging library. From 7.2.0 until 13.0.0, Pillow can enter an infinite loop while determining the frame count of a MIC image. MicImageFile inherits TIFF frame traversal, but MicImageFile.tell reports the OLE stream index and its seek() resets TIFF frame state, so an embedded TIFF with at least three IFDs never advances. When an application with olefile installed reads n_frames or saves all frames from a crafted MIC file, the non-advancing traversal can hold a worker at full CPU indefinitely. This issue is fixed in version 13.0.0.

Last activity 19 Oct 2026. Patch Forecast updates every hour.