{"cve":"CVE-2022-22817","nvd":{"published":"2022-01-10T14:12:55.160","modified":"2026-06-17T04:29:05.480","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":[],"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"],"products":["debian:debian_linux","python:pillow"],"source":"nvd","synced_at":"2026-10-19T21:26:33.761856376+00:00"},"epss":{"cve":"CVE-2022-22817","score":0.03584,"percentile":0.89416,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8vj2-vxx3-667w","url":"https://osv.dev/vulnerability/GHSA-8vj2-vxx3-667w","summary":"Arbitrary expression injection in Pillow","modified":"2024-10-14T18:26:08.636369Z","packages":[{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow","ranges":["<9.0.1"],"fixed":["9.0.1"]}]},{"id":"PYSEC-2022-10","url":"https://osv.dev/vulnerability/PYSEC-2022-10","summary":"","modified":"2023-12-06T01:01:58.166055Z","packages":[{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow","ranges":["<9.0.0"],"fixed":["9.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}