{"schema_version":"1.9.0","id":"BIT-pillow-2022-22817","published":"2024-03-06T11:02:31.011Z","modified":"2026-09-08T08:48:18.421628288Z","aliases":["CVE-2022-22817","GHSA-8vj2-vxx3-667w","PYSEC-2022-10"],"details":"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.","affected":[{"package":{"name":"pillow","ecosystem":"Bitnami","purl":"pkg:bitnami/pillow"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"9.0.1"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/pillow/BIT-pillow-2022-22817.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}],"references":[{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00018.html"},{"type":"ADVISORY","url":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval"},{"type":"ADVISORY","url":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202211-10"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5053"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00021.html"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22817"}],"database_specific":{"cpes":["cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*"],"severity":"Critical"}}