Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-22817

published critical CVSS 3.1 · 9.8

python-pillow: PIL.ImageMath.eval allows evaluation of arbitrary expressions

Title from Red Hat VEX

Published
07 Jan 2022, 00:00:00 UTC
Updated
15 Oct 2024, 20:26:11 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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 / vendorReleasePackage / productPublisher statusFixed buildSource
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.

en · mitre · cna

Vendor advisories explicitly linked to this CVE.

30

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.

Affected vendor and product assertions
VendorProductVersion statusSource
n/a n/a n/a (affected) mitre · cna

Weaknesses

2
  • n/a (mitre · cna)
  • CWE-noinfo Not enough information (CISA-ADP · adp)

References

6

Provider assertions

3

mitre · 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

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected