Skip to content
Noroxi
CVE-2022-22815· NVD / CVE Program· CNA mitre

path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.

MediumCVSS 6.5 · v3.1—No exploit Fix available
Published
Jan 10, 2022
Updated
Jun 17, 2026
EPSS
2.6% · 85th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

27

Monitor

Low priority for now.

CVSS
26 / 40 · 6.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 2.6%

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Affected systems

VendorProduct
pythonpillow
debiandebian linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • debian debian linux10.0
  • debian debian linux11.0
  • debian debian linux9.0
  • python pillowbefore 9.0.0

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.15py3-pillowbefore 8.4.0-r28.4.0-r2
Debian:10pillowbefore 5.4.1-2+deb10u35.4.1-2+deb10u3
Debian:11pillowbefore 8.1.2+dfsg-0.3+deb11u18.1.2+dfsg-0.3+deb11u1
Debian:12pillowbefore 9.0.0-19.0.0-1
Debian:9pillowbefore 4.0.0-4+deb9u44.0.0-4+deb9u4
openSUSE:Leap 15.5python-Pillowbefore 7.2.0-150300.3.15.17.2.0-150300.3.15.1
PyPIpillowbefore 9.0.09.0.0
Red Hat:enterprise_linux:8::appstreampython-pillowbefore 0:5.1.1-18.el8_50:5.1.1-18.el8_5
Red Hat:enterprise_linux:8::appstreampython-pillow-debuginfobefore 0:5.1.1-18.el8_50:5.1.1-18.el8_5
Red Hat:enterprise_linux:8::appstreampython-pillow-debugsourcebefore 0:5.1.1-18.el8_50:5.1.1-18.el8_5
Red Hat:enterprise_linux:8::appstreampython3-pillowbefore 0:5.1.1-18.el8_50:5.1.1-18.el8_5
Red Hat:enterprise_linux:8::appstreampython3-pillow-debuginfobefore 0:5.1.1-18.el8_50:5.1.1-18.el8_5
Red Hat:enterprise_linux:8::appstreampython3-pillow-tk-debuginfobefore 0:5.1.1-18.el8_50:5.1.1-18.el8_5
Red Hat:enterprise_linux:8::crbpython3-pillow-develbefore 0:5.1.1-18.el8_50:5.1.1-18.el8_5
Red Hat:enterprise_linux:8::crbpython3-pillow-docbefore 0:5.1.1-18.el8_50:5.1.1-18.el8_5
Red Hat:enterprise_linux:8::crbpython3-pillow-tkbefore 0:5.1.1-18.el8_50:5.1.1-18.el8_5
Rocky Linux:8python-pillowbefore 0:5.1.1-18.el8_50:5.1.1-18.el8_5
SUSE:Linux Enterprise Module for Package Hub 15 SP6python-Pillowbefore 7.2.0-150300.3.15.17.2.0-150300.3.15.1
SUSE:OpenStack Cloud 9ardana-barbicanbefore 9.0+git.1644879908.8a641c1-3.13.19.0+git.1644879908.8a641c1-3.13.1
SUSE:OpenStack Cloud 9grafanabefore 6.7.4-3.26.16.7.4-3.26.1
SUSE:OpenStack Cloud 9openstack-barbicanbefore 7.0.1~dev24-3.14.17.0.1~dev24-3.14.1
SUSE:OpenStack Cloud 9openstack-cinderbefore 13.0.10~dev24-3.34.213.0.10~dev24-3.34.2
SUSE:OpenStack Cloud 9openstack-heat-gbpbefore 14.0.1~dev4-3.9.114.0.1~dev4-3.9.1
SUSE:OpenStack Cloud 9openstack-horizon-plugin-gbp-uibefore 14.0.1~dev3-3.9.114.0.1~dev3-3.9.1

+26

Other highest-scoring records for the same primary product.

  • CVE-2014-3007Python Image Library (PIL) 1.1.7 and earlier and Pillow 2.3 might allow remote attackers to execute arbitrary commands via shell metacharact
    43Plan
  • CVE-2016-4009Integer overflow in the ImagingResampleHorizontal function in libImaging/Resample.c in Pillow before 3.1.1 allows remote attackers to have u
    41Plan
  • CVE-2022-30595libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.
    40Plan
  • CVE-2022-22817PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method.
    40Plan
  • CVE-2021-34552Pillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters directly into a conv
    40Plan
  • CVE-2021-25289An issue was discovered in Pillow before 8.1.1.
    40Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:py3-pillow8.4.0-r2 · Alpine:v3.15Package registry (OSV)
debian:pillow9.0.0-1 · Debian:12Package registry (OSV)
opensuse:python-Pillow7.2.0-150300.3.15.1 · openSUSE:Leap 15.5Package registry (OSV)
PyPI:pillow9.0.0Package registry (OSV)
red hat:python-pillow0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:python-pillow-debuginfo0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:python-pillow-debugsource0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:python3-pillow0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:python3-pillow-debuginfo0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:python3-pillow-devel0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::crbPackage registry (OSV)
red hat:python3-pillow-doc0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::crbPackage registry (OSV)
red hat:python3-pillow-tk0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::crbPackage registry (OSV)
red hat:python3-pillow-tk-debuginfo0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
rocky linux:python-pillow0:5.1.1-18.el8_5 · Rocky Linux:8Package registry (OSV)
suse:ardana-barbican9.0+git.1644879908.8a641c1-3.13.1 · SUSE:OpenStack Cloud 9Package registry (OSV)
suse:grafana6.7.4-3.26.1 · SUSE:OpenStack Cloud 9Package registry (OSV)
suse:openstack-barbican7.0.1~dev24-3.14.1 · SUSE:OpenStack Cloud 9Package registry (OSV)
suse:openstack-cinder13.0.10~dev24-3.34.2 · SUSE:OpenStack Cloud 9Package registry (OSV)
suse:openstack-heat-gbp14.0.1~dev4-3.9.1 · SUSE:OpenStack Cloud 9Package registry (OSV)
suse:openstack-horizon-plugin-gbp-ui14.0.1~dev3-3.9.1 · SUSE:OpenStack Cloud 9Package registry (OSV)
suse:openstack-ironic11.1.5~dev18-3.28.2 · SUSE:OpenStack Cloud 9Package registry (OSV)
suse:openstack-keystone14.2.1~dev9-3.28.2 · SUSE:OpenStack Cloud 9Package registry (OSV)
suse:openstack-neutron13.0.8~dev206-3.40.1 · SUSE:OpenStack Cloud 9Package registry (OSV)
suse:openstack-neutron-gbp14.0.1~dev33-3.31.1 · SUSE:OpenStack Cloud 9Package registry (OSV)
suse:python-Pillow5.2.0-3.17.1 · SUSE:OpenStack Cloud 9Package registry (OSV)
suse:python-XStatic-jquery-ui1.13.0.1-4.3.1 · SUSE:OpenStack Cloud 9Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
low · data or configuration can be modified
Availability
low · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
Low
Availability impact
Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records