CVE-2022-22817
highpriority · track · 40EPSS 0.033 · 89 %ileDEEURUUSEPSS · scored 2026-10-27
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.
remediations
Vendor fix, mitigation, or workaround guidance, as published by each source.
A vendor fix is available.
- Fixedpython-pillow-0:5.1.1-13.el8_1.src as a component of Red Hat Enterprise Linux AppStream E4S (v. 8.1)redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2022:0669 - Fixedpython-pillow-debuginfo-0:5.1.1-13.el8_1.ppc64le as a component of Red Hat Enterprise Linux AppStream E4S (v. 8.1)redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2022:0669 - Fixedpython-pillow-debuginfo-0:5.1.1-13.el8_1.x86_64 as a component of Red Hat Enterprise Linux AppStream E4S (v. 8.1)redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2022:0669 - Fixedpython-pillow-debugsource-0:5.1.1-13.el8_1.ppc64le as a component of Red Hat Enterprise Linux AppStream E4S (v. 8.1)redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2022:0669 - Fixedpython-pillow-debugsource-0:5.1.1-13.el8_1.x86_64 as a component of Red Hat Enterprise Linux AppStream E4S (v. 8.1)redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2022:0669 - Fixedpython3-pillow-0:5.1.1-13.el8_1.ppc64le as a component of Red Hat Enterprise Linux AppStream E4S (v. 8.1)redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2022:0669 - Fixedpython3-pillow-0:5.1.1-13.el8_1.x86_64 as a component of Red Hat Enterprise Linux AppStream E4S (v. 8.1)redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2022:0669 - Fixedpython3-pillow-debuginfo-0:5.1.1-13.el8_1.ppc64le as a component of Red Hat Enterprise Linux AppStream E4S (v. 8.1)redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2022:0669 - Fixedpython3-pillow-debuginfo-0:5.1.1-13.el8_1.x86_64 as a component of Red Hat Enterprise Linux AppStream E4S (v. 8.1)redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2022:0669 - Fixedpython3-pillow-tk-debuginfo-0:5.1.1-13.el8_1.ppc64le as a component of Red Hat Enterprise Linux AppStream E4S (v. 8.1)redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2022:0669 - Fixedpython3-pillow-tk-debuginfo-0:5.1.1-13.el8_1.x86_64 as a component of Red Hat Enterprise Linux AppStream E4S (v. 8.1)redhat_csaf
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2022:0669
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (34)
Products and version ranges known to be affected.
advisories (8)
Vendor and ecosystem advisories describing this.
- RHSA-2022:0669Red Hat Security Advisory: python-pillow security update2022-02-24csaf · redhat_csafUS
An update for python-pillow is now available for Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.
- WID-SEC-W-2022-0302Xerox FreeFlow Print Server: Mehrere Schwachstellen ermöglichen Ausführen von beliebigem Programmcode mit AdministratorrechtenDeutsch2022-06-14csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in Xerox FreeFlow Print Server ausnutzen, um beliebigen Programmcode auszuführen, einen Cross-Site-Scripting-Angriff durchzuführen, Informationen offenzulegen, einen Denial-of-Service-Zustand zu verursachen oder Dateien zu manipulieren.
- WID-SEC-W-2022-0432Xerox FreeFlow Print Server: Mehrere SchwachstellenDeutsch2022-06-21csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in Xerox FreeFlow Print Server ausnutzen, um die Vertraulichkeit, Verfügbarkeit und Integrität zu gefährden.
- WID-SEC-W-2024-1248Xerox FreeFlow Print Server: Mehrere SchwachstellenDeutsch2024-05-28csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Xerox FreeFlow Print Server ausnutzen, um die Vertraulichkeit, Verfügbarkeit und Integrität des Systems zu gefährden
- WID-SEC-W-2025-0100Red Hat Enterprise Linux: Mehrere SchwachstellenDeutsch2022-02-22csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Red Hat Enterprise Linux ausnutzen, um einen Denial of Service Angriff durchzuführen oder Code auszuführen.
- GHSA-8vj2-vxx3-667wArbitrary expression injection in Pillow2022-01-12ghsa · osvUS
`PIL.ImageMath.eval` in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method `ImageMath.eval("exec(exit())")`. While Pillow 9.0.0 restricted top-level builtins available to PIL.ImageMath.eval(), it did not prevent builtins available to lambda expressions. These are now also restricted in 9.0.1.
- BIT-pillow-2022-228172024-03-06vendor · osvUS
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.
- PYSEC-2022-102022-01-10vendor · osvUS
PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method.
also known as (8)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (37)
External citations — patches, advisories, analysis.
- https://lists.debian.org/debian-lts-announce/2022/01/msg00018.htmlcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2022-22817cnnvd
- https://packetstormsecurity.com/files/165557/Ubuntu-Security-Notice-USN-5227-1.htmlcnnvd
- https://packetstormsecurity.com/files/165588/Ubuntu-Security-Notice-USN-5227-2.htmlcnnvd
- https://packetstormsecurity.com/files/166128/Red-Hat-Security-Advisory-2022-0609-01.htmlcnnvd
- https://packetstormsecurity.com/files/166148/Red-Hat-Security-Advisory-2022-0669-01.htmlcnnvd
- https://packetstormsecurity.com/files/169490/Ubuntu-Security-Notice-USN-5227-3.htmlcnnvd
- https://packetstormsecurity.com/files/169982/Gentoo-Linux-Security-Advisory-202211-10.htmlcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan