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.
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-22811A CWE-352: Cross-Site Request Forgery (CSRF) vulnerability e…8.1
- CVE-2022-22812A CWE-79: Improper Neutralization of Input During Web Page G…6.1
- CVE-2022-22813A CWE-798: Use of Hard-coded Credentials vulnerability exist…9.8
- CVE-2022-22814The System Diagnosis service of MyASUS before 3.1.2.0 allows…9.8
- CVE-2022-22815path_getbbox in path.c in Pillow before 9.0.0 improperly ini…6.5
- CVE-2022-22816path_getbbox in path.c in Pillow before 9.0.0 has a buffer o…6.5
- CVE-2022-22818The {% debug %} template tag in Django 2.2 before 2.2.27, 3.…6.1
- CVE-2022-22819NXP LPC55S66JBD64, LPC55S66JBD100, LPC55S66JEV98, LPC55S69JB…7.8
- CVE-2022-2282Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. Reason: T…
- CVE-2022-22820Due to the lack of media file checks before rendering, it wa…5.5
- CVE-2022-22821NVIDIA NeMo before 1.6.0 contains a vulnerability in ASR Web…4.4
- CVE-2022-22822addBinding in xmlparse.c in Expat (aka libexpat) before 2.4.…9.8
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
