CVE-2022-22815 json
Improper Initialization in Pillow
published 2022-01-07 4 y ago modified 2026-09-08 2 mo ago also BIT-pillow-2022-22815 , EUVD-2022-0199 , GHSA-pw3c-h7wp-cvhx , PYSEC-2022-8
- cvss
- 6.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.8%
- EPSS 2.8% chance of exploitation in 30 days, percentile 86%
- public exploits
- 0
- none known
Summary
path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.
Patch / fix
- pypi pillow 9.0.0
- bitnami pillow 9.0.0
- python pillow 9.0.0
- pillow Debian 14, Debian 13, Debian 12 9.0.0-1
debian advisories DEBIAN-CVE-2022-22815
- pillow Ubuntu 18.04 LTS 5.1.0-1ubuntu0.7
- pillow Ubuntu 20.04 LTS 7.0.0-4ubuntu0.5
- pillow Ubuntu 22.04 LTS 9.0.0-1
- pillow Ubuntu Pro 14.04 LTS 2.3.0-1ubuntu3.4+esm3
- pillow Ubuntu Pro 16.04 LTS 3.1.2-0ubuntu1.6+esm1
ubuntu advisories UBUNTU-CVE-2022-22815
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-pillow RHEL 8 5.1.1-18.el8_5
- python3-pillow RHEL 8 5.1.1-18.el8_5
- python3-pillow-tk RHEL 8 5.1.1-18.el8_5
red hat advisories RHSA-2022:0643
- python-Pillow SLE Module for Package Hub 15 SP6, openSUSE Leap 15.5 7.2.0-150300.3.15.1
- grafana OpenStack Cloud Crowbar 9, OpenStack Cloud 9 6.7.4-3.26.1
- python-lxml OpenStack Cloud Crowbar 9, OpenStack Cloud 9 4.2.4-3.3.1
- python-Pillow OpenStack Cloud Crowbar 9, OpenStack Cloud 9 5.2.0-3.17.1
- ardana-barbican OpenStack Cloud 9 9.0+git.1644879908.8a641c1-3.13.1
- rubygem-sinatra OpenStack Cloud Crowbar 9 1.4.6-4.3.1
- openstack-cinder OpenStack Cloud Crowbar 9, OpenStack Cloud 9 13.0.10~dev24-3.34.2
- openstack-ironic OpenStack Cloud Crowbar 9, OpenStack Cloud 9 11.1.5~dev18-3.28.2
suse advisories SUSE-SU-2024:1673-2SUSE-SU-2024:1673-1SUSE-SU-2022:1729-1
- python3-pillow AlmaLinux 8 5.1.1-18.el8_5
- python3-pillow-tk AlmaLinux 8 5.1.1-18.el8_5
almalinux advisories ALSA-2022:0643
- python-pillow Rocky Linux 8 5.1.1-18.el8_5
rocky linux advisories RLSA-2022:0643
- py3-pillow Alpine 3.15 8.4.0-r2
- py3-pillow Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 9.0.0-r0
alpine advisories ALPINE-CVE-2022-22815
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/python-pillow/Pillow@1e09241 commit
- github.com/python-pillow/Pillow@c48271a commit
- github.com/python-pillow/Pillow#5920 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-22815 updated cvss 6.5
python-pillow: improperly initializes ImagePath.Path in path_getbbox() in path.c
-
Red Hat Enterprise Linux 7 python-pillow, python-pillow-qt, python-pillow-tk, python-pillow-saneaffected: no fix planned “Out of support scope”
-
Red Hat Quay 3 quay/quay-rhel8affected: no fix available
-
Red Hat CodeReady Linux Builder (v. 8) python3-pillow 5.1.1-18.el8_5, python3-pillow-tk 5.1.1-18.el8_5 Red Hat Enterprise Linux AppStream (v. 8) python-pillow 5.1.1-18.el8_5, python3-pillow 5.1.1-18.el8_5fixed: vendor fix RHSA-2022:0643
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.77% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:N/I:P/A:P |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pillow | <9.0.0 |
9.0.0 |
| bitnami | pillow | <9.0.0 |
9.0.0 |
Classification
- Weakness
-
- CWE-665 Improper Initialization
References
-
github.com
/python-pillow/Pillow/pull/5920
web
-
github.com
/python-pillow/Pillow/commit/1e092419b6806495c683043ab3feb6ce264f3b9c
web
-
github.com
/python-pillow/Pillow/commit/c48271ab354db49cdbd740bc45e13be4f0f7993c
web
-
debian.org
/security/2022/dsa-5053
vendor-advisory, web, third-party-advisory, advisory
-
security.gentoo.org
/glsa/202211-10
vendor-advisory, third-party-advisory, advisory
-
pillow.readthedocs.io
/en/stable/releasenotes/9.0.0.html#fixed-imagepath-path-array-handling
web, vendor-advisory, advisory
-
github.com
/python-pillow/Pillow/blob/c5d9223a8b5e9295d15b5a9b1ef1dae44c8499f3/src/path.c#L331
web, third-party-advisory, advisory
-
lists.debian.org
/debian-lts-announce/2022/01/msg00018.html
mailing-list, web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-22815
advisory, web
-
github.com
/advisories/GHSA-pw3c-h7wp-cvhx
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-8.yaml
web
-
github.com
/python-pillow/Pillow
package
-
github.com
/python-pillow/Pillow/blob/e8ab5640774716c5486d3cb05167f74f742ad6ef/CHANGES.rst?plain=1#L1187
web
Sources
- CVE List CVE-2022-22815
- GitHub Advisory GHSA-pw3c-h7wp-cvhx
- NVD CVE-2022-22815
- OSV BIT-pillow-2022-22815
- OSV PYSEC-2022-8
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.