Python-pillow Pillow
Pillow: TarIO negative size field causes infinite CPU-spin loop
Pillow is a Python imaging library. Prior to 13.0.0, the TarIO initializer in src/PIL/TarIO.py accepts a negative octal member size and computes a backward seek that returns to the same 512-byte header. When the requested member name does not match, the parser repeatedly reads that header, consumes a full CPU core, and never returns. TarIO is reached only when an application directly uses PIL.TarIO.TarIO rather than the default Image.open() path. This issue is fixed in version 13.0.0.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.1high · scored by CNA · CWE-835
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
python-pillow Pillow
- < 13.0.0
Fixed in 13.0.0
Mitigation
Upgrade Pillow to 13.0.0 or later.
References
- Vendor advisory github.com/python-pillow/Pillow/security/advis…
- Patch github.com/python-pillow/Pillow/pull/10012
- Patch github.com/python-pillow/Pillow/commit/19b695f…
1 more
- Release notes github.com/python-pillow/Pillow/releases/tag/1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.