Live threats

All CVEs / Python

CVE-2022-22817Python Pillow

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
3.1%
probability of exploitation in 30 days · percentile 88
Auth required
No
Published
Jan 10, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pillow.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pillow < 9.0.1 9.0.1 pip install "pillow>=9.0.1"
PyPI pillow < 9.0.0 9.0.0 pip install "pillow>=9.0.0"

Per OSV / GitHub Advisories (GHSA-8vj2-vxx3-667w, PYSEC-2022-10). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pythonpillow< 9.0.1
debiandebian_linux9.0
debiandebian_linux10.0
debiandebian_linux11.0

Official sources

References

Links published by the sources. Open them with care.