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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | python3-pillow | 5.1.1-18.el8_5 | ALSA-2022:0643 |
| AlmaLinux:8 | python3-pillow-devel | 5.1.1-18.el8_5 | ALSA-2022:0643 |
| AlmaLinux:8 | python3-pillow-doc | 5.1.1-18.el8_5 | ALSA-2022:0643 |
| AlmaLinux:8 | python3-pillow-tk | 5.1.1-18.el8_5 | ALSA-2022:0643 |
| Alpine:v3.20 | py3-pillow | 9.0.1-r0 | ALPINE-CVE-2022-22817 |
| Alpine:v3.21 | py3-pillow | 9.0.1-r0 | ALPINE-CVE-2022-22817 |
| Alpine:v3.22 | py3-pillow | 9.0.1-r0 | ALPINE-CVE-2022-22817 |
| Alpine:v3.23 | py3-pillow | 9.0.1-r0 | ALPINE-CVE-2022-22817 |
| Alpine:v3.24 | py3-pillow | 9.0.1-r0 | ALPINE-CVE-2022-22817 |
| Debian:12 | pillow | 9.0.0-1 | DEBIAN-CVE-2022-22817 |
| Debian:13 | pillow | 9.0.0-1 | DEBIAN-CVE-2022-22817 |
| Debian:14 | pillow | 9.0.0-1 | DEBIAN-CVE-2022-22817 |
| PyPI | pillow | 9.0.0 | PYSEC-2022-10 |
| PyPI | pillow | 9.0.1 | GHSA-8vj2-vxx3-667w |
| Rocky Linux:8 | python-pillow | 0:5.1.1-18.el8_5 | RLSA-2022:0643 |
Affected products (as reported)
References
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval
- [debian-lts-announce] 20220123 [SECURITY] [DLA 2893-1] pillow security update mailing-list
- DSA-5053 vendor-advisory
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security
- GLSA-202211-10 vendor-advisory
- [debian-lts-announce] 20240322 [SECURITY] [DLA 3768-1] pillow security update mailing-list