PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method. A lambda expression could also be used,
https://lists.debian.org/debian-lts-announce/2022/01/msg00018.html
https://www.debian.org/security/2022/dsa-5053
https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security
Source: MITRE
Published: 2022-01-10
Updated: 2023-01-31
Type: NVD-CWE-noinfo
Base Score: 7.5
Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P
Impact Score: 6.4
Exploitability Score: 10
Severity: HIGH
Base Score: 9.8
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Impact Score: 5.9
Exploitability Score: 3.9
Severity: CRITICAL