VDB
CVE-2022-22816
CVE-2022-22816
PUBLISHED
CVSS 6.5 MEDIUM
Out-of-bounds Read in Pillow
Reported by mitre · Published January 7, 2022
Pillow is fixed in 9.0.0 (PyPI)
path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Pillow | PyPI | 9.0.0 |
| python-pillow | Amazon Linux | 2.0.0-23.gitd1c6db8.amzn2.0.1 |
| python-pillow-doc | Amazon Linux | 2.0.0-23.gitd1c6db8.amzn2.0.1 |
| py3-pillow | Alpine | 9.0.0-r0, 8.4.0-r2 |
| python3-pillow-devel | Amazon Linux | 9.0.1-6.amzn2023.0.3 |
| python-pillow-tk | Amazon Linux | 2.0.0-23.gitd1c6db8.amzn2.0.1 |
| python-pillow-sane | Amazon Linux | 2.0.0-23.gitd1c6db8.amzn2.0.1 |
| pillow | Bitnami | 9.0.0 |
| pillow | python | 9.0.0 |
Risk scores
CVSS 3.1
6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | python-pillow | 0 |
| PyPI | Pillow | 0 |
| amazon:2 | python-pillow-doc | 0 |
| alpine | py3-pillow | 0, 0 |
| amazon:2023 | python3-pillow-devel | 0 |
| amazon:2 | python-pillow-tk | 0 |
| amazon:2 | python-pillow-sane | 0 |
| n/a | n/a | * |
| amazon:2 | python-pillow-devel | 0 |
| amazon:2023 | python3-pillow-tk | 0 |
| amazon:2023 | python3-pillow | 0 |
Timeline
- Jan 7, 2022 CVE Published
- Feb 8, 2022 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory (9 in total, the first dated here)
- Jul 6, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch (6 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-22816
vulnetix vdb fixes CVE-2022-22816
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-22816/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20220123 [SECURITY] [DLA 2893-1] pillow security update mailing-list
- DSA-5053 vendor-advisory
- GLSA-202211-10 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-22816 advisory
- https://github.com/advisories/GHSA-xrcv-f9gm-v42c advisory
- https://github.com/python-pillow/Pillow/pull/5920 patch
- https://github.com/python-pillow/Pillow/commit/5543e4e2d409cd9e409bc64cdc77be0af007a31f patch
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-9.yaml advisory
- https://github.com/python-pillow/Pillow url