10.0.0 (2023-07-01)
Security
Limit size even if one dimension is zero
When performing decompression bomb checks, Pillow did not reject images with excessive width and zero height, or zero width and excessive height. That has now been fixed.
This effectively dates to the PIL fork, since problem images would still have been processed before Pillow started checking for decompression bombs.
CVE 2023-44271: Added ImageFont.MAX_STRING_LENGTH
To protect against potential DOS attacks when using arbitrary strings as text
input, Pillow will now raise a ValueError if the number of characters
passed into ImageFont methods is over a certain limit,
PIL.ImageFont.MAX_STRING_LENGTH.
This threshold can be changed by setting . It can be disabled by setting .