Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pillow
  4. ›
  5. CVE-2026-96643

CVE-2026-96643: Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time

October 22, 2026

A PNG file with a large eXIf chunk full of repeated 6-byte markers makes Pillow’s EXIF parser take seconds of CPU instead of milliseconds. The cost grows with the square of the chunk size, so a normal small-photo-sized file is enough to cause real delay.

References

  • github.com/advisories/GHSA-g4qv-2jxx-769h
  • github.com/python-pillow/Pillow/commit/806e38381c781f32bbd22f4cd026678acd40fd6c
  • github.com/python-pillow/Pillow/pull/10073
  • github.com/python-pillow/Pillow/releases/tag/13.0.0
  • github.com/python-pillow/Pillow/security/advisories/GHSA-g4qv-2jxx-769h
  • nvd.nist.gov/vuln/detail/CVE-2026-96643

Code Behaviors & Features

Detect and mitigate CVE-2026-96643 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 11.0.0 before 13.0.0

Fixed versions

  • 13.0.0

Solution

Upgrade to version 13.0.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-407: Inefficient Algorithmic Complexity

Source file

pypi/Pillow/CVE-2026-96643.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:10 +0000.