CVE-2022-22817 – pillow
Package
Manager: pip
Name: pillow
Vulnerable Version: >=0 <9.0.1
Severity
Level: Critical
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.02872 pctl0.85762
Details
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.
Metadata
Created: 2022-01-12T20:07:33Z
Modified: 2024-10-11T20:56:01Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-8vj2-vxx3-667w/GHSA-8vj2-vxx3-667w.json
CWE IDs: ["CWE-74"]
Alternative ID: GHSA-8vj2-vxx3-667w
Finding: F404
Auto approve: 1