Name | CVE-2022-22817 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2893-1, DLA-3768-1, DSA-5053-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
pillow (PTS) | bullseye (security), bullseye | 8.1.2+dfsg-0.3+deb11u2 | fixed |
bookworm, bookworm (security) | 9.4.0-1.1+deb12u1 | fixed | |
sid, trixie | 10.4.0-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
pillow | source | stretch | 4.0.0-4+deb9u4 | DLA-2893-1 | ||
pillow | source | buster | 5.4.1-2+deb10u5 | DLA-3768-1 | ||
pillow | source | bullseye | 8.1.2+dfsg-0.3+deb11u1 | DSA-5053-1 | ||
pillow | source | (unstable) | 9.0.0-1 |
https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval
https://github.com/python-pillow/Pillow/commit/8531b01d6cdf0b70f256f93092caa2a5d91afc11 (9.0.0)
Fillowup in 9.0.1: https://github.com/python-pillow/Pillow/commit/c930be0758ac02cf15a2b8d5409d50d443550581