Skip to content
Fencer Vulns
medium 6.5

CVE-2022-22816 json

Out-of-bounds Read in Pillow

published 2022-01-07 4 y ago modified 2026-09-08 2 mo ago also BIT-pillow-2022-22816 , EUVD-2022-0200 , GHSA-xrcv-f9gm-v42c , PYSEC-2022-9

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.1%
EPSS 2.1% chance of exploitation in 30 days, percentile 81%
public exploits
0
none known

Summary

path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of 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-22816

  • 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-22816

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 7 2.0.0-23.gitd1c6db8.el7_9
  • python-pillow-qt RHEL 7 2.0.0-23.gitd1c6db8.el7_9
  • python-pillow-tk RHEL 7 2.0.0-23.gitd1c6db8.el7_9
  • python-pillow-sane RHEL 7 2.0.0-23.gitd1c6db8.el7_9
  • 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
  • python-pillow RHEL 8.1 E4S 5.1.1-13.el8_1

red hat advisories RHSA-2022:0669RHSA-2022:0667RHSA-2022:0665RHSA-2022:0609RHSA-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-22816

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

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-22816 updated cvss 6.5

python-pillow: buffer over-read during initialization of ImagePath.Path in path_getbbox() in path.c

  • Red Hat Quay 3 quay/quay-rhel8
    affected: 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_5
    fixed: vendor fix RHSA-2022:0643
  • Red Hat Enterprise Linux AppStream E4S (v. 8.1) python-pillow 5.1.1-13.el8_1, python3-pillow 5.1.1-13.el8_1
    fixed: vendor fix RHSA-2022:0669
  • Red Hat Enterprise Linux AppStream EUS (v. 8.2) python-pillow 5.1.1-14.el8_2, python3-pillow 5.1.1-14.el8_2
    fixed: vendor fix RHSA-2022:0667
  • Red Hat Enterprise Linux AppStream EUS (v.8.4) python-pillow 5.1.1-14.el8_4, python3-pillow 5.1.1-14.el8_4
    fixed: vendor fix RHSA-2022:0665
  • Red Hat Enterprise Linux Client (v. 7) python-pillow 2.0.0-23.gitd1c6db8.el7_9 Red Hat Enterprise Linux Client Optional (v. 7) python-pillow 2.0.0-23.gitd1c6db8.el7_9, python-pillow-qt 2.0.0-23.gitd1c6db8.el7_9, python-pillow-tk 2.0.0-23.gitd1c6db8.el7_9, python-pillow-sane 2.0.0-23.gitd1c6db8.el7_9 Red Hat Enterprise Linux ComputeNode Optional (v. 7) python-pillow 2.0.0-23.gitd1c6db8.el7_9, python-pillow-qt 2.0.0-23.gitd1c6db8.el7_9, python-pillow-tk 2.0.0-23.gitd1c6db8.el7_9, python-pillow-sane 2.0.0-23.gitd1c6db8.el7_9 Red Hat Enterprise Linux Server (v. 7) python-pillow 2.0.0-23.gitd1c6db8.el7_9 Red Hat Enterprise Linux Server Optional (v. 7) python-pillow 2.0.0-23.gitd1c6db8.el7_9, python-pillow-qt 2.0.0-23.gitd1c6db8.el7_9, python-pillow-tk 2.0.0-23.gitd1c6db8.el7_9, python-pillow-sane 2.0.0-23.gitd1c6db8.el7_9 Red Hat Enterprise Linux Workstation (v. 7) python-pillow 2.0.0-23.gitd1c6db8.el7_9
    +1 more products
    Red Hat Enterprise Linux Workstation Optional (v. 7) python-pillow 2.0.0-23.gitd1c6db8.el7_9, python-pillow-qt 2.0.0-23.gitd1c6db8.el7_9, python-pillow-tk 2.0.0-23.gitd1c6db8.el7_9, python-pillow-sane 2.0.0-23.gitd1c6db8.el7_9
    fixed: vendor fix RHSA-2022:0609

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.06% chance of exploitation in the next 30 days, higher than 81% 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

References

Sources

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.