path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.
- Published
- Jan 10, 2022
- Updated
- Jun 17, 2026
- EPSS
- 2.6% · 85th percentile
- CWE
- CWE-665
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
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 helpAffected systems
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.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.15 | py3-pillow | before 8.4.0-r2 | 8.4.0-r2 |
| Debian:10 | pillow | before 5.4.1-2+deb10u3 | 5.4.1-2+deb10u3 |
| Debian:11 | pillow | before 8.1.2+dfsg-0.3+deb11u1 | 8.1.2+dfsg-0.3+deb11u1 |
| Debian:12 | pillow | before 9.0.0-1 | 9.0.0-1 |
| Debian:9 | pillow | before 4.0.0-4+deb9u4 | 4.0.0-4+deb9u4 |
| openSUSE:Leap 15.5 | python-Pillow | before 7.2.0-150300.3.15.1 | 7.2.0-150300.3.15.1 |
| PyPI | pillow | before 9.0.0 | 9.0.0 |
| Red Hat:enterprise_linux:8::appstream | python-pillow | before 0:5.1.1-18.el8_5 | 0:5.1.1-18.el8_5 |
| Red Hat:enterprise_linux:8::appstream | python-pillow-debuginfo | before 0:5.1.1-18.el8_5 | 0:5.1.1-18.el8_5 |
| Red Hat:enterprise_linux:8::appstream | python-pillow-debugsource | before 0:5.1.1-18.el8_5 | 0:5.1.1-18.el8_5 |
| Red Hat:enterprise_linux:8::appstream | python3-pillow | before 0:5.1.1-18.el8_5 | 0:5.1.1-18.el8_5 |
| Red Hat:enterprise_linux:8::appstream | python3-pillow-debuginfo | before 0:5.1.1-18.el8_5 | 0:5.1.1-18.el8_5 |
| Red Hat:enterprise_linux:8::appstream | python3-pillow-tk-debuginfo | before 0:5.1.1-18.el8_5 | 0:5.1.1-18.el8_5 |
| Red Hat:enterprise_linux:8::crb | python3-pillow-devel | before 0:5.1.1-18.el8_5 | 0:5.1.1-18.el8_5 |
| Red Hat:enterprise_linux:8::crb | python3-pillow-doc | before 0:5.1.1-18.el8_5 | 0:5.1.1-18.el8_5 |
| Red Hat:enterprise_linux:8::crb | python3-pillow-tk | before 0:5.1.1-18.el8_5 | 0:5.1.1-18.el8_5 |
| Rocky Linux:8 | python-pillow | before 0:5.1.1-18.el8_5 | 0:5.1.1-18.el8_5 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP6 | python-Pillow | before 7.2.0-150300.3.15.1 | 7.2.0-150300.3.15.1 |
| SUSE:OpenStack Cloud 9 | ardana-barbican | before 9.0+git.1644879908.8a641c1-3.13.1 | 9.0+git.1644879908.8a641c1-3.13.1 |
| SUSE:OpenStack Cloud 9 | grafana | before 6.7.4-3.26.1 | 6.7.4-3.26.1 |
| SUSE:OpenStack Cloud 9 | openstack-barbican | before 7.0.1~dev24-3.14.1 | 7.0.1~dev24-3.14.1 |
| SUSE:OpenStack Cloud 9 | openstack-cinder | before 13.0.10~dev24-3.34.2 | 13.0.10~dev24-3.34.2 |
| SUSE:OpenStack Cloud 9 | openstack-heat-gbp | before 14.0.1~dev4-3.9.1 | 14.0.1~dev4-3.9.1 |
| SUSE:OpenStack Cloud 9 | openstack-horizon-plugin-gbp-ui | before 14.0.1~dev3-3.9.1 | 14.0.1~dev3-3.9.1 |
+26
Same product
python: all recordsOther 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 metacharact43Plan
- CVE-2016-4009Integer overflow in the ImagingResampleHorizontal function in libImaging/Resample.c in Pillow before 3.1.1 allows remote attackers to have u41Plan
- 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 conv40Plan
- 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 / package | Fixed version | Source |
|---|---|---|
| alpine:py3-pillow | 8.4.0-r2 · Alpine:v3.15 | Package registry (OSV) |
| debian:pillow | 9.0.0-1 · Debian:12 | Package registry (OSV) |
| opensuse:python-Pillow | 7.2.0-150300.3.15.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| PyPI:pillow | 9.0.0 | Package registry (OSV) |
| red hat:python-pillow | 0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:python-pillow-debuginfo | 0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:python-pillow-debugsource | 0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:python3-pillow | 0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:python3-pillow-debuginfo | 0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:python3-pillow-devel | 0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::crb | Package registry (OSV) |
| red hat:python3-pillow-doc | 0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::crb | Package registry (OSV) |
| red hat:python3-pillow-tk | 0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::crb | Package registry (OSV) |
| red hat:python3-pillow-tk-debuginfo | 0:5.1.1-18.el8_5 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| rocky linux:python-pillow | 0:5.1.1-18.el8_5 · Rocky Linux:8 | Package registry (OSV) |
| suse:ardana-barbican | 9.0+git.1644879908.8a641c1-3.13.1 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:grafana | 6.7.4-3.26.1 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:openstack-barbican | 7.0.1~dev24-3.14.1 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:openstack-cinder | 13.0.10~dev24-3.34.2 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:openstack-heat-gbp | 14.0.1~dev4-3.9.1 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:openstack-horizon-plugin-gbp-ui | 14.0.1~dev3-3.9.1 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:openstack-ironic | 11.1.5~dev18-3.28.2 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:openstack-keystone | 14.2.1~dev9-3.28.2 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:openstack-neutron | 13.0.8~dev206-3.40.1 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:openstack-neutron-gbp | 14.0.1~dev33-3.31.1 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:python-Pillow | 5.2.0-3.17.1 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:python-XStatic-jquery-ui | 1.13.0.1-4.3.1 · SUSE:OpenStack Cloud 9 | Package 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.
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.
Credits
All researchersFinders, 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
Weakness class (CWE)
CWE-665 · Improper InitializationCVSS 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.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- github.com/python-pillow/Pillow/blob/c5d9223a8b5e9295d15b5a9b1ef1dae44c8499f3/src/path.c#L331
- lists.debian.org/debian-lts-announce/2022/01/msg00018.html
- pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#fixed-imagepath-path-array-handling
- security.gentoo.org/glsa/202211-10
- www.debian.org/security/2022/dsa-5053
Vendor advisories and official records. Exploit/PoC links are deliberately left out.