CVE-2023-50447

NameCVE-2023-50447
DescriptionPillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different vulnerability than CVE-2022-22817 (which was about the expression parameter).
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3724-1, DSA-5704-1
Debian Bugs1061172

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pillow (PTS)bullseye (security), bullseye8.1.2+dfsg-0.3+deb11u2fixed
bookworm, bookworm (security)9.4.0-1.1+deb12u1fixed
sid, trixie10.4.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pillowsourcebuster5.4.1-2+deb10u4DLA-3724-1
pillowsourcebullseye8.1.2+dfsg-0.3+deb11u2DSA-5704-1
pillowsourcebookworm9.4.0-1.1+deb12u1DSA-5704-1
pillowsource(unstable)10.2.0-11061172

Notes

https://duartecsantos.github.io/2023-01-02-CVE-2023-50447/
https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html#imagemath-eval-restricted-environment-keys
https://github.com/python-pillow/Pillow/commit/45c726fd4daa63236a8f3653530f297dc87b160a (10.2.0)
https://github.com/python-pillow/Pillow/commit/0ca3c33c59927e1c7e0c14dbc1eea1dfb2431a80 (10.2.0)
https://github.com/python-pillow/Pillow/commit/557ba59d13de919d04b3fd4cdef8634f7d4b3348 (10.2.0)

Search for package or bug name: Reporting problems