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.
{ "nvd_published_at": "2022-01-10T14:12:00Z", "cwe_ids": [ "CWE-74" ], "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2022-01-11T18:03:44Z" }