GHSA-8vj2-vxx3-667wCriticalCVSS 9.8

Arbitrary expression injection in Pillow

Published
January 12, 2022
Last Modified
October 11, 2024

🔗 CVE IDs covered (1)

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

🎯 Affected products1

  • pip/Pillow:< 9.0.1

🔗 References (10)