pillow
Affected
- introduced
0, fixed9.0.1(ecosystem)
Fixed versions
9.0.1
Fix
- Fixed version
9.0.1pip install --upgrade pillow==9.0.1
Advisory
Also known as: BIT-pillow-2022-22817, CVE-2022-22817, PYSEC-2022-10
Arbitrary expression injection in Pillow
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.
Critical Basis: The source's own band: CRITICAL
0, fixed 9.0.1 (ecosystem)9.0.1
9.0.1pip install --upgrade pillow==9.0.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0