PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-128066 python-pillow CVE debrief

A memory denial-of-service vulnerability exists in Pillow's TIFF and EXIF IFD parsing functionality. A specially crafted image file can cause Pillow to consume thousands of times its own size in memory, leading to a potential crash or stall of the process handling it. This can occur when a small, crafted image file is opened, causing Pillow to use excessive memory. The vulnerability is caused by a flaw in the `ImageFileDirectory_v2.load()` function in `src/PIL/TiffImagePlugin.py`. Defenders responsible for systems that use Pillow to process images should assess their exposure and prioritize updating to version 13.0.0 or later to prevent potential denial-of-service attacks.

Vendor
python-pillow
Product
pillow
CVSS
HIGH 8.7
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-12
Original CVE updated
2026-11-17
Advisory published
2026-11-12
Advisory updated
2026-11-17

Who should care

Defenders responsible for systems that use Pillow to process images should assess their exposure and prioritize updating to version 13.0.0 or later to prevent potential denial-of-service attacks.

Why it matters

A memory denial-of-service vulnerability exists in Pillow's TIFF and EXIF IFD parsing functionality, which can be exploited by a specially crafted image file. Defenders should prioritize updating Pillow to version 13.0.0 or later to prevent potential denial-of-service attacks.

  • Denial of service through excessive memory consumption
  • Potential crash or stall of the process handling the image

Technical summary

The vulnerability exists in the `ImageFileDirectory_v2.load()` function in `src/PIL/TiffImagePlugin.py`. A small, crafted image file can cause Pillow to use thousands of times its own size in memory while being opened, leading to a potential crash or stall of the process handling it. The bug allows a 144 KB TIFF to hold 1.6 GiB of memory and the largest standard TIFF, about 786 KB, asks for roughly 48 GiB. The file declares a 1×1 image, so the decompression-bomb check never triggers and no warning is raised. There is no memory corruption; the impact is denial of service.

Defensive priority

Defenders should prioritize updating Pillow to version 13.0.0 or later to prevent potential denial-of-service attacks.

Recommended defensive actions

  • Update Pillow to version 13.0.0 or later
  • Restrict image uploads to trusted sources
  • Monitor for suspicious image upload activity
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.
  • Review compensating controls for exposed systems while remediation is scheduled and verified.

Evidence notes

The vulnerability is caused by a flaw in the `ImageFileDirectory_v2.load()` function in `src/PIL/TiffImagePlugin.py`. A small, crafted image file can cause Pillow to use excessive memory while being opened, leading to a denial-of-service condition.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-128066 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-128066

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-128066 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-128066

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

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

    Unverified legacy reference

    URL: https://storage.googleapis.com/osv-vulnerabilities/PyPI/GHSA-wqgw-9xfh-qf2g.json

    osv_dev

  • Source reference

    Unverified legacy reference

    URL: https://github.com/python-pillow/Pillow/security/advisories/GHSA-wqgw-9xfh-qf2g

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/python-pillow/Pillow/commit/4908edaf7f416616784c7c03d8c1a60153710ffb

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/python-pillow/Pillow/commit/4b63dffd8a6d980fa0e21b40832fa6cbf033eacf

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/python-pillow/Pillow

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/python-pillow/Pillow/releases/tag/13.0.0

    Supplemental source

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.