{"id":"CVE-2023-50447","published":"2024-01-19T00:00:00Z","modified":"2024-08-02T22:16:46Z","title":"Pillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different…","vendor":null,"product":null,"tier":"tail","description":{"text":"Pillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different vulnerability than CVE-2022-22817 (which was about the expression parameter).","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01703,"percentile":0.77817,"provenance":"source"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://github.com/python-pillow/Pillow/releases","tags":[]},{"url":"https://devhub.checkmarx.com/cve-details/CVE-2023-50447/","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/01/20/1","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/01/msg00019.html","tags":["mailing-list"]},{"url":"https://duartecsantos.github.io/2024-01-02-CVE-2023-50447/","tags":[]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":15.56},{"name":"CVSS severity","points":5.67}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-07-19T03:55:36.638240Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":["<10.2.0"],"patched":["10.2.0"],"from":["GHSA-3f63-hfp8-52jq","PYSEC-2026-457"],"provenance":"source"}],"summary":{"text":"The Pillow imaging library through version 10.1.0 contains a flaw in its PIL.ImageMath.eval function, where the environment parameter lets input be dynamically evaluated as code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:06:56Z"},"euvd":{"id":"EUVD-2024-0230","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pillow-cve-2022-22817","parents":[{"from":"CVE-2022-22817","to":"CVE-2023-50447","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PIL/ImageMath.py"],"commits":["https://github.com/python-pillow/Pillow/commit/8531b01d6cdf0b70f256f93092caa2a5d91afc11","https://github.com/python-pillow/Pillow/commit/45c726fd4daa63236a8f3653530f297dc87b160a"],"basis":"shared function","functions":["eval"]}]}],"packageHistory":[{"cve":"CVE-2022-24303","published":"2022-03-28","fixed":"9.0.1","kev":false},{"cve":"CVE-2022-30595","published":"2022-05-25","fixed":"9.1.1","kev":false},{"cve":"CVE-2023-4863","published":"2023-09-12","fixed":"10.0.1","kev":true,"link":{"from":"CVE-2023-4863","to":"CVE-2023-50447","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Pillow","fromFixed":"10.0.1","toFixed":"10.2.0","daysApart":129}]}},{"cve":"CVE-2023-50447","published":"2024-01-19","fixed":"10.2.0","kev":false},{"cve":"CVE-2026-55798","published":"2026-07-06","fixed":"12.3.0","kev":false},{"cve":"CVE-2026-59197","published":"2026-07-14","fixed":"12.3.0","kev":false},{"cve":"CVE-2026-59198","published":"2026-07-14","fixed":"12.3.0","kev":false}],"package":"PyPI:Pillow"}}