An issue exists in Pillow prior to 8.1.1. The PDF parser allows a regular expression DoS (ReDoS) attack via a crafted PDF file because of a catastrophic backtracking regex.
A security issue was found in python-pillow before version 811 The PDF parser has a catastrophic backtracking regex that could be used in a denial of service (DoS) attack ...