CVE-2022-22817
CRITICALCVSS 9.8/10EPSS 3.40%
Last modified
CVE-2022-22817 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. EPSS estimates a 3.40% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Python | Pillow | < 9.0.1 |
| Debian | Debian Linux | 9.0 |
| Debian | Debian Linux | 10.0 |
| Debian | Debian Linux | 11.0 |
References
- https://lists.debian.org/debian-lts-announce/2022/01/msg00018.htmlMailing List, Third Party Advisory
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-evalRelease Notes, Vendor Advisory
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#securityRelease Notes, Vendor Advisory
- https://security.gentoo.org/glsa/202211-10Third Party Advisory
- https://www.debian.org/security/2022/dsa-5053Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/01/msg00018.htmlMailing List, Third Party Advisory
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-evalRelease Notes, Vendor Advisory
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#securityRelease Notes, Vendor Advisory
- https://security.gentoo.org/glsa/202211-10Third Party Advisory
- https://www.debian.org/security/2022/dsa-5053Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-22817?
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 severe is CVE-2022-22817?
CVE-2022-22817 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 3.40% probability of exploitation in the next 30 days.
How do I fix CVE-2022-22817?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.
Are you affected by CVE-2022-22817?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
