CVE-2022-22817
Arbitrary expression injection in Pillow
9.8
CRITICAL
CVSS 3.1
EPSS 2.8%
Description
PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method. A lambda expression could also be used.
How to fix CVE-2022-22817
To remediate CVE-2022-22817, upgrade the affected package to a fixed version below.
- Alpine/py3-pillow—upgrade to 8.4.0-r3 or later
- Bitnami/pillow—upgrade to 9.0.1 or later
- —upgrade to 8.1.2+dfsg-0.3+deb11u1 or later
- —upgrade to 9.0.1 or later
- —upgrade to 9.0.0 or later
Is CVE-2022-22817 being exploited?
Low — EPSS is 2.8%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0, < 8.4.0-r3
- from 0, < 9.0.1
- from 0, < 8.1.2+dfsg-0.3+deb11u1
- from 0, < 9.0.1
- from 0, < 9.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |