Security mailing lists by PureSourceCode

CVE-2026-128066

HIGH 8.7CVSS 4.0

Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data

Pillow is a Python imaging library. From 1.0 through 12.3.0, ImageFileDirectory_v2.load() in src/PIL/TiffImagePlugin.py retains a separate bytes object for each out-of-line IFD tag value without limiting the total data read or preventing distinct tags from referencing the same file region. A small crafted TIFF or EXIF-bearing JPEG, PNG, WebP, or MPO can therefore cause memory use quadratic in the input size. TIFF and some JPEG paths trigger parsing during Image.open(), while other formats are exposed when EXIF is requested, including through getexif() or ImageOps.exif_transpose(). The declared pixel dimensions do not bound this metadata allocation, so decompression-bomb checks do not prevent process memory exhaustion. This issue is fixed in version 13.0.0.

Published
13 Nov 2026
Last modified
27 Nov 2026
Assigned by
security-advisories@github.com
NVD status
Awaiting Analysis
Weakness
CWE-770
Also known as
BIT-pillow-2026-128066GHSA-wqgw-9xfh-qf2g
Sources
NVDJSONOSV GHSA-wqgw-9xfh-qf2gJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 HIGH 8.7 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV PyPI pillow < 13.0.0 13.0.0

References

History

  • 27 Nov 2026 07:34 UTC · OSV: updated (other details)
  • 25 Nov 2026 21:23 UTC · NVD: first stored (published 13 Nov 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.