~ / search / GHSA-8vj2-vxx3-667w

GHSA-8vj2-vxx3-667w

Arbitrary expression injection in Pillow

Source: GitHub Advisory Database (reviewed) Critical CVE-2022-22817

Packages

EcosystemPackageAffectedFixed in
PyPI pillow < 9.0.1 9.0.1

Details

As written in the advisory (Markdown source, shown as plain text).

`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.

References

External links from the advisory. They lead to third-party sites.