CRITICAL 9.8 PyPI

Arbitrary expression injection in Pillow

GHSA-8vj2-vxx3-667w · BIT-pillow-2022-22817 · CVE-2022-22817 · PYSEC-2022-10

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes