Vulnerability
CVE-2022-22817
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.
28 advisories report this vulnerability, across 12 ecosystems.
Advisories in openSUSE
-
openSUSE-SU-2024:11814-1
python310-Pillow-9.0.1-1.1 on GA media
-
openSUSE-SU-2025:14645-1
python311-Pillow-11.1.0-1.1 on GA media
References
- https://lists.debian.org/debian-lts-announce/2022/01/msg00018.html
- https://lists.debian.org/debian-lts-announce/2024/03/msg00021.html
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security
- https://security.gentoo.org/glsa/202211-10
- https://www.debian.org/security/2022/dsa-5053