Lucene search

K
githubGitHub Advisory DatabaseGHSA-8VJ2-VXX3-667W
HistoryJan 12, 2022 - 8:07 p.m.

Arbitrary expression injection in Pillow

2022-01-1220:07:33
CWE-74
GitHub Advisory Database
github.com
137

0.003 Low

EPSS

Percentile

68.4%

PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method ImageMath.eval("exec(exit())").

While Pillow 9.0.0 restricted top-level builtins available to PIL.ImageMath.eval(), it did not prevent builtins available to lambda expressions. These are now also restricted in 9.0.1.

CPENameOperatorVersion
pillowlt9.0.1