CVE-2022-22817
published critical CVSS 3.1 · 9.8python-pillow: PIL.ImageMath.eval allows evaluation of arbitrary expressions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2022-1786 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-057 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | python3-pillow | Advisory build | 5.1.1-18.el8_5 | ALSA-2022:0643 |
| Alpine Linux | edge | py3-pillow | Fixed | 9.0.1-r0 | Package fix record |
| Debian | bullseye | pillow | Advisory build | 8.1.2+dfsg-0.3+deb11u1 | DSA-5053-1 |
| Oracle Linux | 7 | python-pillowaarch64 | Advisory build | 0:2.0.0-23.gitd1c6db8.el7_9 | ELSA-2022-0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillowi686 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | python3-pillow-devel | Advisory build | 5.1.1-18.el8_5 | ALSA-2022:0643 |
| AlmaLinux | 8 | python3-pillow-doc | Advisory build | 5.1.1-18.el8_5 | ALSA-2022:0643 |
| AlmaLinux | 8 | python3-pillow-tk | Advisory build | 5.1.1-18.el8_5 | ALSA-2022:0643 |
| Alpine Linux | v3.15 | py3-pillow | Fixed | 8.4.0-r3 | Package fix record |
| Alpine Linux | v3.16 | py3-pillow | Fixed | 9.0.1-r0 | Package fix record |
| Alpine Linux | v3.17 | py3-pillow | Fixed | 9.0.1-r0 | Package fix record |
| Alpine Linux | v3.18 | py3-pillow | Fixed | 9.0.1-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-pillow | Fixed | 9.0.1-r0 | Package fix record |
| Alpine Linux | v3.20 | py3-pillow | Fixed | 9.0.1-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-pillow | Fixed | 9.0.1-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-pillow | Fixed | 9.0.1-r0 | Package fix record |
| Alpine Linux | v3.23 | py3-pillow | Fixed | 9.0.1-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-pillow | Fixed | 9.0.1-r0 | Package fix record |
| Debian | buster | pillow | Advisory build | 5.4.1-2+deb10u3 | DSA-5053-1 |
| Debian | buster | pillow | Advisory build | 5.4.1-2+deb10u5 | DLA-3768-1 |
| Debian | stretch | pillow | Advisory build | 4.0.0-4+deb9u4 | DLA-2893-1 |
| Oracle Linux | 7 | python-pillowx86_64 | Advisory build | 0:2.0.0-23.gitd1c6db8.el7_9 | ELSA-2022-0609 |
| Oracle Linux | 7 | python-pillow-develaarch64 | Advisory build | 0:2.0.0-23.gitd1c6db8.el7_9 | ELSA-2022-0609 |
| Oracle Linux | 7 | python-pillow-develx86_64 | Advisory build | 0:2.0.0-23.gitd1c6db8.el7_9 | ELSA-2022-0609 |
| Oracle Linux | 7 | python-pillow-docaarch64 | Advisory build | 0:2.0.0-23.gitd1c6db8.el7_9 | ELSA-2022-0609 |
| Oracle Linux | 7 | python-pillow-docx86_64 | Advisory build | 0:2.0.0-23.gitd1c6db8.el7_9 | ELSA-2022-0609 |
| Oracle Linux | 7 | python-pillow-qtaarch64 | Advisory build | 0:2.0.0-23.gitd1c6db8.el7_9 | ELSA-2022-0609 |
| Oracle Linux | 7 | python-pillow-qtx86_64 | Advisory build | 0:2.0.0-23.gitd1c6db8.el7_9 | ELSA-2022-0609 |
| Oracle Linux | 7 | python-pillow-saneaarch64 | Advisory build | 0:2.0.0-23.gitd1c6db8.el7_9 | ELSA-2022-0609 |
| Oracle Linux | 7 | python-pillow-sanex86_64 | Advisory build | 0:2.0.0-23.gitd1c6db8.el7_9 | ELSA-2022-0609 |
| Oracle Linux | 7 | python-pillow-tkaarch64 | Advisory build | 0:2.0.0-23.gitd1c6db8.el7_9 | ELSA-2022-0609 |
| Oracle Linux | 7 | python-pillow-tkx86_64 | Advisory build | 0:2.0.0-23.gitd1c6db8.el7_9 | ELSA-2022-0609 |
| Oracle Linux | 8 | python3-pillowaarch64 | Advisory build | 0:5.1.1-18.el8_5 | ELSA-2022-0643 |
| Oracle Linux | 8 | python3-pillowx86_64 | Advisory build | 0:5.1.1-18.el8_5 | ELSA-2022-0643 |
| Oracle Linux | 8 | python3-pillow-develaarch64 | Advisory build | 0:5.1.1-18.el8_5 | ELSA-2022-0643 |
| Oracle Linux | 8 | python3-pillow-develx86_64 | Advisory build | 0:5.1.1-18.el8_5 | ELSA-2022-0643 |
| Oracle Linux | 8 | python3-pillow-docaarch64 | Advisory build | 0:5.1.1-18.el8_5 | ELSA-2022-0643 |
| Oracle Linux | 8 | python3-pillow-docx86_64 | Advisory build | 0:5.1.1-18.el8_5 | ELSA-2022-0643 |
| Oracle Linux | 8 | python3-pillow-tkaarch64 | Advisory build | 0:5.1.1-18.el8_5 | ELSA-2022-0643 |
| Oracle Linux | 8 | python3-pillow-tkx86_64 | Advisory build | 0:5.1.1-18.el8_5 | ELSA-2022-0643 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillowppc | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillowppc64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillowppc64le | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillows390 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillows390x | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillowsrc | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillowx86_64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-debuginfoi686 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-debuginfoppc | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-debuginfoppc64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-debuginfoppc64le | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-debuginfos390 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-debuginfos390x | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-debuginfox86_64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-develi686 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-develppc | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-develppc64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-develppc64le | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-devels390 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-devels390x | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-develx86_64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-docppc64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-docppc64le | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-docs390x | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-docx86_64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-qtppc64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-qtppc64le | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-qts390x | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-qtx86_64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-saneppc64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-saneppc64le | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-sanes390x | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-sanex86_64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-tkppc64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-tkppc64le | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-tks390x | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-7 | python-pillow-tkx86_64 | Advisory build | 2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillowsrc | Advisory build | 5.1.1-13.el8_1 | RHSA-2022:0669 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillowsrc | Advisory build | 5.1.1-14.el8_2 | RHSA-2022:0667 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillowsrc | Advisory build | 5.1.1-14.el8_4 | RHSA-2022:0665 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillowsrc | Advisory build | 5.1.1-18.el8_5 | RHSA-2022:0643 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfoaarch64 | Advisory build | 5.1.1-14.el8_2 | RHSA-2022:0667 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfoaarch64 | Advisory build | 5.1.1-14.el8_4 | RHSA-2022:0665 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfoaarch64 | Advisory build | 5.1.1-18.el8_5 | RHSA-2022:0643 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfoppc64le | Advisory build | 5.1.1-13.el8_1 | RHSA-2022:0669 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfoppc64le | Advisory build | 5.1.1-14.el8_2 | RHSA-2022:0667 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfoppc64le | Advisory build | 5.1.1-14.el8_4 | RHSA-2022:0665 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfoppc64le | Advisory build | 5.1.1-18.el8_5 | RHSA-2022:0643 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfos390x | Advisory build | 5.1.1-14.el8_2 | RHSA-2022:0667 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfos390x | Advisory build | 5.1.1-14.el8_4 | RHSA-2022:0665 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfos390x | Advisory build | 5.1.1-18.el8_5 | RHSA-2022:0643 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfox86_64 | Advisory build | 5.1.1-13.el8_1 | RHSA-2022:0669 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfox86_64 | Advisory build | 5.1.1-14.el8_2 | RHSA-2022:0667 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfox86_64 | Advisory build | 5.1.1-14.el8_4 | RHSA-2022:0665 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debuginfox86_64 | Advisory build | 5.1.1-18.el8_5 | RHSA-2022:0643 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debugsourceaarch64 | Advisory build | 5.1.1-14.el8_2 | RHSA-2022:0667 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debugsourceaarch64 | Advisory build | 5.1.1-14.el8_4 | RHSA-2022:0665 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debugsourceaarch64 | Advisory build | 5.1.1-18.el8_5 | RHSA-2022:0643 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debugsourceppc64le | Advisory build | 5.1.1-13.el8_1 | RHSA-2022:0669 |
| Red Hat Enterprise Linux | RHEL-8 | python-pillow-debugsourceppc64le | Advisory build | 5.1.1-14.el8_2 | RHSA-2022:0667 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-noinfo Not enough information
References
6- [debian-lts-announce] 20220123 [SECURITY] [DLA 2893-1] pillow security update https://lists.debian.org/debian-lts-announce/2022/01/msg00018.html
- [debian-lts-announce] 20240322 [SECURITY] [DLA 3768-1] pillow security update 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-eval
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security
- GLSA-202211-10 https://security.gentoo.org/glsa/202211-10
- DSA-5053 https://www.debian.org/security/2022/dsa-5053
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6084d1789bdaa51a46c8c9a7d372fcd81abc5d215504ec7983998b531273603e
- Ingested
- 23 Sep 2026, 07:58:34 UTC
- Source record
- Official CVE record