Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-22817

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

Overview

Published
10 Jan 2022
Modified
17 Jun 2026
Critical CVE
2 Registry packages
28 OS packages
10 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

9.8 · CRITICAL

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages · 2

Packages affected by CVE-2022-22817
EcosystemPackageVulnerableFixed in
Bitnami pillow <9.0.1 9.0.1
PyPI pillow <9.0.1 9.0.1

Open a package to see all its vulnerabilities.

Operating systems · 27 fixes

Oracle Linux 2 releases · 2 packages

fixed 2
python-pillow python3-pillow
Oracle Linux fixes for CVE-2022-22817
ReleasePackageFixed in
7 python-pillow +5 2.0.0-23.gitd1c6db8.el7_9
8 python3-pillow +3 5.1.1-18.el8_5

Red Hat 2 releases · 2 packages

fixed 5
python-pillow python3-pillow
Red Hat fixes for CVE-2022-22817
ReleasePackageFixed inAdvisory
7 python-pillow +5 0:2.0.0-23.gitd1c6db8.el7_9 RHSA-2022:0609
8 python3-pillow 0:5.1.1-13.el8_1 RHSA-2022:0669
8 python3-pillow 0:5.1.1-14.el8_2 RHSA-2022:0667
8 python3-pillow 0:5.1.1-14.el8_4 RHSA-2022:0665
8 python3-pillow +3 0:5.1.1-18.el8_5 RHSA-2022:0643

alma 1 release · 1 package

fixed 1
python3-pillow
alma fixes for CVE-2022-22817
ReleasePackageFixed in
8 python3-pillow +3 5.1.1-18.el8_5

alpine 4 releases · 1 package

fixed 4
py3-pillow
alpine fixes for CVE-2022-22817
ReleasePackageFixed in
3.22 py3-pillow 9.0.1-r0
3.23 py3-pillow 9.0.1-r0
3.24 py3-pillow 9.0.1-r0
edge py3-pillow 9.0.1-r0

amazon linux 1 release · 1 package

fixed 1
python-pillow-debuginfo
amazon linux fixes for CVE-2022-22817
ReleasePackageFixed in
2023 python-pillow-debuginfo +6 9.0.1-6.amzn2023.0.3

debian 6 releases · 1 package

fixed 6
pillow
debian fixes for CVE-2022-22817
ReleasePackageFixed in
10 pillow 5.4.1-2+deb10u5
11 pillow 8.1.2+dfsg-0.3+deb11u1
12 pillow 9.0.0-1
13 pillow 9.0.0-1
14 pillow 9.0.0-1
9 pillow 4.0.0-4+deb9u4

echo 1 release · 1 package

fixed 1
pillow
echo fixes for CVE-2022-22817
ReleasePackageFixed in
pillow 9.0.0-1

openSUSE 1 release · 2 packages

fixed 2
python311-pillow python310-pillow
openSUSE fixes for CVE-2022-22817
ReleasePackageFixed inAdvisory
Tumbleweed python311-pillow +5 11.1.0-1.1 openSUSE-SU-2025:14645-1
Tumbleweed python310-pillow +5 9.0.1-1.1 openSUSE-SU-2024:11814-1

rocky 1 release · 1 package

fixed 1
python3-pillow
rocky fixes for CVE-2022-22817
ReleasePackageFixed in
8 python3-pillow 5.1.1-18.el8_5

ubuntu 4 releases · 1 package

fixed 4
pillow
ubuntu fixes for CVE-2022-22817
ReleasePackageFixed in
18.04 pillow 5.1.0-1ubuntu0.8
18.04-ESM pillow 5.1.0-1ubuntu0.8
20.04 pillow 7.0.0-4ubuntu0.6
20.04-ESM pillow 7.0.0-4ubuntu0.6

References

Show all 26 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.