What’s Vulnerable › Vulnerabilities

CVE-2022-22817: Arbitrary expression injection in Pillow

Description

PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method. A lambda expression could also be used.

Affected products

How to fix

Upgrade to a fixed version: python-pillow Pillow 9.0.1; Pypi Pillow 9.0.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-22817 or the next vulnerability affects your stack