Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.3

CVE-2022-22817: Pillow library allows attackers to run code

CVE-2022-22817 · published 6 days ago
Summary

The Python Pillow package used for image processing has a flaw that could let an attacker execute code on your system. The issue affects various Pillow releases that are installed from common sources. Apply the latest Pillow update or the specific patched versions provided by your package manager to fix the problem.

What to do
  • Update jeffrey 'alex' clark pillow to version 9.0.1.
  • Update debian pillow to version 9.0.0-1.
  • Update pillow to version 8.0.1+aikido.1.
  • Update pillow to version 8.1.2+aikido.1.
  • Update pillow to version 8.2.0+aikido.1.
  • Update pillow to version 9.0.0+aikido.1.
  • Update pillow to version 9.0.0+aikido.2.
  • Update pillow to version 7.0.0+aikido.3.
  • Update pillow to version 7.0.0+aikido.4.
  • Update pillow to version 8.2.0+aikido.2.
  • Update canonical pillow to version 5.1.0-1ubuntu0.8.
  • Update canonical pillow to version 7.0.0-4ubuntu0.6.
  • Update pillow to version 9.0.0+aikido.3.
  • Update python pillow to version 9.0.1 or later.
Affected software
Ecosystem VendorProductAffected versions
pip jeffrey 'alex' clark pillow < 9.0.1
Fix: upgrade to 9.0.1
– python pillow < 9.0.1
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
– debian debian_linux 9.0
10.0
11.0
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
Debian:12 debian pillow < 9.0.0-1
Fix: upgrade to 9.0.0-1
Root:PyPI – pillow < 8.0.1+aikido.1
< 8.1.2+aikido.1
< 8.2.0+aikido.1
< 9.0.0+aikido.1
< 9.0.0+aikido.2
< 7.0.0+aikido.3
< 7.0.0+aikido.4
< 8.2.0+aikido.2
< 9.0.0+aikido.3
Fix: upgrade to 8.0.1+aikido.1
Ubuntu:18.04:LTS canonical pillow < 5.1.0-1ubuntu0.8
Fix: upgrade to 5.1.0-1ubuntu0.8
Ubuntu:20.04:LTS canonical pillow < 7.0.0-4ubuntu0.6
Fix: upgrade to 7.0.0-4ubuntu0.6
Ubuntu:Pro:20.04:LTS canonical pillow-python2 All versions
Original advisory text
CVE-2022-22817 in pillow - Patched by Root
Root has patched CVE-2022-22817 in the pillow package for Root:PyPI. Multiple fixed versions available.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically
  • Gives an attacker full control
Severity
9.3 Critical
Exploitation
4% chance of attack within 30 days
Type
CWE-74Injection
Timeline
Published27 Nov 2026
Updated2 Dec 2026
First seen6 Mar 2026
Track software like this
Free during beta