{"api_version":"1","generated_at":"2026-04-22T20:52:44+00:00","cve":"CVE-2022-22817","urls":{"html":"https://cve.report/CVE-2022-22817","api":"https://cve.report/api/cve/CVE-2022-22817.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-22817","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-22817"},"summary":{"title":"CVE-2022-22817","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,","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2022-01-10 14:12:00","updated_at":"2023-12-10 18:15:00"},"problem_types":["NVD-CWE-noinfo"],"metrics":[],"references":[{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security","name":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security","refsource":"CONFIRM","tags":[],"title":"9.0.1 — Pillow (PIL Fork) 9.0.1 documentation","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2022/dsa-5053","name":"DSA-5053","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-5053-1 pillow","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval","name":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval","refsource":"MISC","tags":[],"title":"9.0.0 — Pillow (PIL Fork) 9.0.0 documentation","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/202211-10","name":"GLSA-202211-10","refsource":"GENTOO","tags":[],"title":"Pillow: Multiple Vulnerabilities (GLSA 202211-10) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00018.html","name":"[debian-lts-announce] 20220123 [SECURITY] [DLA 2893-1] pillow security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2893-1] pillow security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-22817","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22817","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"22817","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"22817","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"11.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"22817","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"22817","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"python","cpe5":"pillow","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-22817","qid":"159644","title":"Oracle Enterprise Linux Security Update for python-pillow (ELSA-2022-0643)"},{"cve":"CVE-2022-22817","qid":"159676","title":"Oracle Enterprise Linux Security Update for python-pillow (ELSA-2022-0609)"},{"cve":"CVE-2022-22817","qid":"179015","title":"Debian Security Update for pillow (DSA 5053-1)"},{"cve":"CVE-2022-22817","qid":"179022","title":"Debian Security Update for pillow (DLA 2893-1)"},{"cve":"CVE-2022-22817","qid":"181913","title":"Debian Security Update for pillow (CVE-2022-22817)"},{"cve":"CVE-2022-22817","qid":"198632","title":"Ubuntu Security Notification for Pillow Vulnerabilities (USN-5227-1)"},{"cve":"CVE-2022-22817","qid":"199002","title":"Ubuntu Security Notification for Pillow Vulnerability (USN-5227-3)"},{"cve":"CVE-2022-22817","qid":"240104","title":"Red Hat Update for python-pillow (RHSA-2022:0609)"},{"cve":"CVE-2022-22817","qid":"240105","title":"Red Hat Update for python-pillow (RHSA-2022:0643)"},{"cve":"CVE-2022-22817","qid":"240109","title":"Red Hat Update for python-pillow (RHSA-2022:0667)"},{"cve":"CVE-2022-22817","qid":"240114","title":"Red Hat Update for python-pillow (RHSA-2022:0665)"},{"cve":"CVE-2022-22817","qid":"257156","title":"CentOS Security Update for python-pillow (CESA-2022:0609)"},{"cve":"CVE-2022-22817","qid":"282334","title":"Fedora Security Update for mingw (FEDORA-2022-a1bc7decc9)"},{"cve":"CVE-2022-22817","qid":"282335","title":"Fedora Security Update for mingw (FEDORA-2022-e4087f9366)"},{"cve":"CVE-2022-22817","qid":"296062","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 43.113.3 Missing (CPUJAN2022)"},{"cve":"CVE-2022-22817","qid":"353267","title":"Amazon Linux Security Advisory for python-pillow : ALAS2-2022-1786"},{"cve":"CVE-2022-22817","qid":"354453","title":"Amazon Linux Security Advisory for python-pillow : ALAS2022-2022-196"},{"cve":"CVE-2022-22817","qid":"355177","title":"Amazon Linux Security Advisory for python-pillow : ALAS2023-2023-057"},{"cve":"CVE-2022-22817","qid":"377242","title":"Alibaba Cloud Linux Security Update for python-pillow (ALINUX2-SA-2022:0014)"},{"cve":"CVE-2022-22817","qid":"377325","title":"Alibaba Cloud Linux Security Update for python-pillow (ALINUX3-SA-2022:0012)"},{"cve":"CVE-2022-22817","qid":"502019","title":"Alpine Linux Security Update for py3-pillow"},{"cve":"CVE-2022-22817","qid":"502344","title":"Alpine Linux Security Update for py3-pillow"},{"cve":"CVE-2022-22817","qid":"505321","title":"Alpine Linux Security Update for py3-pillow"},{"cve":"CVE-2022-22817","qid":"6000536","title":"Debian Security Update for pillow (DLA 3768-1)"},{"cve":"CVE-2022-22817","qid":"671473","title":"EulerOS Security Update for python-pillow (EulerOS-SA-2022-1436)"},{"cve":"CVE-2022-22817","qid":"671476","title":"EulerOS Security Update for python-pillow (EulerOS-SA-2022-1457)"},{"cve":"CVE-2022-22817","qid":"671503","title":"EulerOS Security Update for python-pillow (EulerOS-SA-2022-1514)"},{"cve":"CVE-2022-22817","qid":"671507","title":"EulerOS Security Update for python-pillow (EulerOS-SA-2022-1495)"},{"cve":"CVE-2022-22817","qid":"671547","title":"EulerOS Security Update for python-pillow (EulerOS-SA-2022-1549)"},{"cve":"CVE-2022-22817","qid":"671591","title":"EulerOS Security Update for python-pillow (EulerOS-SA-2022-1583)"},{"cve":"CVE-2022-22817","qid":"671670","title":"EulerOS Security Update for python-pillow (EulerOS-SA-2022-1760)"},{"cve":"CVE-2022-22817","qid":"710682","title":"Gentoo Linux Pillow Multiple Vulnerabilities (GLSA 202211-10)"},{"cve":"CVE-2022-22817","qid":"940457","title":"AlmaLinux Security Update for python-pillow (ALSA-2022:0643)"},{"cve":"CVE-2022-22817","qid":"960856","title":"Rocky Linux Security Update for python-pillow (RLSA-2022:0643)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2022-22817","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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,"}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval","refsource":"MISC","name":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval"},{"refsource":"MLIST","name":"[debian-lts-announce] 20220123 [SECURITY] [DLA 2893-1] pillow security update","url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00018.html"},{"refsource":"DEBIAN","name":"DSA-5053","url":"https://www.debian.org/security/2022/dsa-5053"},{"refsource":"CONFIRM","name":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security","url":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security"},{"refsource":"GENTOO","name":"GLSA-202211-10","url":"https://security.gentoo.org/glsa/202211-10"}]}},"nvd":{"publishedDate":"2022-01-10 14:12:00","lastModifiedDate":"2023-12-10 18:15:00","problem_types":["NVD-CWE-noinfo"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*","versionEndExcluding":"9.0.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"22817","Ordinal":"225273","Title":"CVE-2022-22817","CVE":"CVE-2022-22817","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"22817","Ordinal":"1","NoteData":"PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method.","Type":"Description","Title":null},{"CveYear":"2022","CveId":"22817","Ordinal":"2","NoteData":"2022-01-07","Type":"Other","Title":"Published"},{"CveYear":"2022","CveId":"22817","Ordinal":"3","NoteData":"2022-01-25","Type":"Other","Title":"Modified"}]}}}