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://www.debian.org/security/2022/dsa-5053
https://security.gentoo.org/glsa/202211-10
https://lists.debian.org/debian-lts-announce/2022/01/msg00018.html
https://github.com/JawadPy/CVE-Exploit-Collection
https://github.com/JawadPy/CVE-2022-22817
https://github.com/SaintsConnor/Exploits
https://github.com/advisories/GHSA-8vj2-vxx3-667w
https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security
https://lists.debian.org/debian-lts-announce/2024/03/msg00021.html
Published: 2022-01-10
Updated: 2026-06-17
Base Score: 7.5
Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P
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
Severity: Critical
Base Score: 9.3
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Severity: Critical
EPSS: 0.02548