An issue was discovered in Pillow before 8.1.1. The PDF parser allows a regular expression DoS (ReDoS) attack via a crafted PDF file because of a catastrophic backtracking regex.
"https://github.com/pypa/advisory-database/blob/main/vulns/pillow/PYSEC-2021-38.yaml"