Vulnerability · Published Jan 7, 2022 · Assigned by mitre

CVE-2022-22817

Critical 9.8

In plain English

A critical-severity security flaw in the python3-pillow package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.6% (higher than 89% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)3.6%top 10.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8python3-pillow5.1.1-18.el8_5ALSA-2022:0643
AlmaLinux:8python3-pillow-devel5.1.1-18.el8_5ALSA-2022:0643
AlmaLinux:8python3-pillow-doc5.1.1-18.el8_5ALSA-2022:0643
AlmaLinux:8python3-pillow-tk5.1.1-18.el8_5ALSA-2022:0643
Alpine:v3.20py3-pillow9.0.1-r0ALPINE-CVE-2022-22817
Alpine:v3.21py3-pillow9.0.1-r0ALPINE-CVE-2022-22817
Alpine:v3.22py3-pillow9.0.1-r0ALPINE-CVE-2022-22817
Alpine:v3.23py3-pillow9.0.1-r0ALPINE-CVE-2022-22817
Alpine:v3.24py3-pillow9.0.1-r0ALPINE-CVE-2022-22817
Debian:12pillow9.0.0-1DEBIAN-CVE-2022-22817
Debian:13pillow9.0.0-1DEBIAN-CVE-2022-22817
Debian:14pillow9.0.0-1DEBIAN-CVE-2022-22817
PyPIpillow9.0.0PYSEC-2022-10
PyPIpillow9.0.1GHSA-8vj2-vxx3-667w
Rocky Linux:8python-pillow0:5.1.1-18.el8_5RLSA-2022:0643

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References