VulnerabilityModified
CVE-2022-22817
PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method.
CRITICAL 9.8EPSS 3.33%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (3.33%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 3.33% probability · 88th percentile
- CISA KEV
- Not listed
- Affected
- python/pillow · debian/debian linux
- Source
- cve@mitre.org
References
- https://lists.debian.org/debian-lts-announce/2022/01/msg00018.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2024/03/msg00021.html
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-evalRelease Notes, Vendor Advisory
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#securityRelease Notes, Vendor Advisory
- https://security.gentoo.org/glsa/202211-10Third Party Advisory
- https://www.debian.org/security/2022/dsa-5053Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/01/msg00018.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2024/03/msg00021.html
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-evalRelease Notes, Vendor Advisory
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#securityRelease Notes, Vendor Advisory
- https://security.gentoo.org/glsa/202211-10Third Party Advisory
- https://www.debian.org/security/2022/dsa-5053Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.