CVSS 3.1
9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCritical (9.8). EPSS 3.6% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 9.0.0, 9.0.1.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hpillow (PyPI): fixed in 9.0.1, 9.0.0Explain CVE-2022-22817 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-22817?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-22817?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-22817 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| python:pillow | before 9.0.1 |
| debian:debian_linux | 9.0 |
| debian:debian_linux | 10.0 |
| debian:debian_linux | 11.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-8vj2-vxx3-667w | PyPI | pillow | <9.0.1 | 9.0.1 |
| PYSEC-2022-10 | PyPI | pillow | <9.0.0 | 9.0.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 9 | pillow | 4.0.0-4+deb9u4 | DLA-2893-1 |
| Debian | 10 | pillow | 5.4.1-2+deb10u3 | DSA-5053-1 |
| Debian | 10 | pillow | 5.4.1-2+deb10u5 | DLA-3768-1 |
| Debian | 11 | pillow | 8.1.2+dfsg-0.3+deb11u1 | DSA-5053-1 |
| Debian | 12, 13, 14 | pillow | 9.0.0-1 | DEBIAN-CVE-2022-22817 |
| Ubuntu | 18.04:LTS | pillow | 5.1.0-1ubuntu0.8 | UBUNTU-CVE-2022-22817 USN-5227-1 USN-5227-3 |
| Ubuntu | 20.04:LTS | pillow | 7.0.0-4ubuntu0.6 | UBUNTU-CVE-2022-22817 USN-5227-1 USN-5227-3 |
| Ubuntu | Pro:14.04:LTS | pillow | 2.3.0-1ubuntu3.4+esm3 | USN-5227-2 |
| Ubuntu | Pro:16.04:LTS | pillow | 3.1.2-0ubuntu1.6+esm1 | USN-5227-2 |
| Ubuntu | Pro:20.04:LTS | pillow-python2 | no fix listed | UBUNTU-CVE-2022-22817 |
| Red Hat | enterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 more | python-pillow, python-pillow-qt, python-pillow-tk and 4 more | 0:2.0.0-23.gitd1c6db8.el7_9 | RHSA-2022:0609 |
| Red Hat | enterprise_linux:8::appstream | python-pillow, python3-pillow, python-pillow-debuginfo and 3 more | 0:5.1.1-18.el8_5 | RHSA-2022:0643 |
| Red Hat | enterprise_linux:8::crb | python3-pillow, python3-pillow-tk, python3-pillow-doc and 5 more | 0:5.1.1-18.el8_5 | RHSA-2022:0643 |
| Red Hat | rhel_e4s:8.1::appstream | python-pillow, python3-pillow, python-pillow-debuginfo and 3 more | 0:5.1.1-13.el8_1 | RHSA-2022:0669 |
| Red Hat | rhel_eus:8.2::appstream | python-pillow, python3-pillow, python-pillow-debuginfo and 3 more | 0:5.1.1-14.el8_2 | RHSA-2022:0667 |
| Red Hat | rhel_eus:8.4::appstream | python-pillow, python3-pillow, python-pillow-debuginfo and 3 more | 0:5.1.1-14.el8_4 | RHSA-2022:0665 |
| SUSE | HPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8 | python-Pillow | 4.2.1-3.26.1 | SUSE-SU-2024:0290-1 |
| SUSE | OpenStack Cloud 9 | ardana-barbican | 9.0+git.1644879908.8a641c1-3.13.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-barbican | 7.0.1~dev24-3.35.2 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-cinder | 13.0.10~dev24-3.38.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-designate | 7.0.2~dev2-3.35.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-glance | 17.0.1~dev30-3.33.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-heat | 11.0.4~dev4-3.35.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-horizon | 14.1.1~dev11-4.39.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-ironic | 11.1.5~dev18-4.33.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-keystone | 14.2.1~dev9-3.36.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-magnum | 7.2.1~dev1-4.35.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-manila | 7.4.2~dev60-3.41.1 | SUSE-SU-2022:1729-1 |
| 21 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Tumbleweed | python-Pillow | 11.1.0-1.1 | openSUSE-SU-2025:14645-1 |
| openSUSE | Tumbleweed | python-Pillow | 9.0.1-1.1 | openSUSE-SU-2024:11814-1 |
| AlmaLinux | 8 | python3-pillow, python3-pillow-tk, python3-pillow-doc and 1 more | 5.1.1-18.el8_5 | ALSA-2022:0643 |
| Rocky Linux | 8 | python-pillow | 0:5.1.1-18.el8_5 | RLSA-2022:0643 |
| Alpine | v3.15 | py3-pillow | 8.4.0-r3 | ALPINE-CVE-2022-22817 |
| Alpine | v3.16, v3.17, v3.18 and 6 more | py3-pillow | 9.0.1-r0 | ALPINE-CVE-2022-22817 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Important.
Red Hat Quay ships a vulnerable version of Pillow as a dependency of xhtml2pdf. The xhtml2pdf package is used in the invoice generation feature of Quay, however, the vulnerable ImageMath module is not used by xhtml2pdf. Therefore impact for Quay is rated Low.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | python-pillow-0:2.0.0-23.gitd1c6db8.el7_9 | Fixed 2022-02-22 | RHSA-2022:0609 |
| Red Hat Enterprise Linux 8 | python-pillow-0:5.1.1-18.el8_5 | Fixed 2022-02-22 | RHSA-2022:0643 |
| Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | python-pillow-0:5.1.1-13.el8_1 | Fixed 2022-02-24 | RHSA-2022:0669 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | python-pillow-0:5.1.1-14.el8_2 | Fixed 2022-02-24 | RHSA-2022:0667 |
| Red Hat Enterprise Linux 8.4 Extended Update Support | python-pillow-0:5.1.1-14.el8_4 | Fixed 2022-02-24 | RHSA-2022:0665 |
| Red Hat Quay 3 | quay/quay-rhel8 | Affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-22817.