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://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-22817.json"