ADVISORIES

Vulnerability

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.

28 advisories report this vulnerability, across 12 ecosystems.

Advisories

  • ALAS2-2022-1786

    Amazon Linux 2 2017.12 - ALAS2-2022-1786: important priority package update for python-pillow

    Important CVE-2022-22815CVE-2022-22816CVE-2022-22817 Amazon Linux Updated 23 September 2025
  • ALAS2023-2023-057

    Amazon Linux 2023 - ALAS2023-2023-057: Important priority package update for python-pillow

    Important CVE-2022-22816CVE-2022-22817 Amazon Linux Updated 22 February 2023
  • ALPINE-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.

    CVE-2022-22817 Alpine Updated 20 November 2026
  • ALPINE-EDGE-CVE-2022-22817
    CVE-2022-22817 Alpine Updated 18 November 2026
  • ALSA-2022:0643

    Important: python-pillow security update

    CVE-2022-22815CVE-2022-22816CVE-2022-22817 AlmaLinux Updated 29 October 2026
  • DEBIAN-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.

    CVE-2022-22817 Debian Updated 20 November 2026
  • DLA-2893-1

    pillow - security update

    CVE-2022-22815CVE-2022-22816CVE-2022-22817 Debian Updated 20 November 2026
  • DLA-3768-1

    pillow - security update

    CVE-2021-23437CVE-2022-22817CVE-2023-44271 Debian Updated 20 November 2026
  • DSA-5053-1

    pillow - security update

    CVE-2022-22815CVE-2022-22816CVE-2022-22817 Debian Updated 20 November 2026
  • ELSA-2022-0609

    ELSA-2022-0609: python-pillow security update (IMPORTANT)

    Important CVE-2022-22816CVE-2022-22817 Oracle Linux Updated 23 February 2022
  • ELSA-2022-0643

    ELSA-2022-0643: python-pillow security update (IMPORTANT)

    Important CVE-2022-22816CVE-2022-22817 Oracle Linux Updated 23 February 2022
  • GHSA-8vj2-vxx3-667w

    Arbitrary expression injection in Pillow

    Critical CVE-2022-22817 PyPI Updated 14 October 2024
  • OESA-2022-1526

    python-pillow security update

    Critical CVE-2022-22815CVE-2022-22816CVE-2022-22817 openEuler Updated 18 August 2026
  • PYSEC-2022-10

    PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method.

    CVE-2022-22817 PyPI Updated 6 December 2023
  • RHSA-2022:0609

    Red Hat Security Advisory: python-pillow security update

    CVE-2022-22816CVE-2022-22817 Red Hat Updated 13 November 2026
  • RHSA-2022:0643

    Red Hat Security Advisory: python-pillow security update

    CVE-2022-22815CVE-2022-22816CVE-2022-22817 Red Hat Updated 13 November 2026
  • RHSA-2022:0665

    Red Hat Security Advisory: python-pillow security update

    CVE-2022-22816CVE-2022-22817 Red Hat Updated 13 November 2026
  • RHSA-2022:0667

    Red Hat Security Advisory: python-pillow security update

    CVE-2022-22816CVE-2022-22817 Red Hat Updated 13 November 2026
  • RHSA-2022:0669

    Red Hat Security Advisory: python-pillow security update

    CVE-2022-22816CVE-2022-22817 Red Hat Updated 13 November 2026
  • RLSA-2022:0643

    Important: python-pillow security update

    CVE-2022-22815CVE-2022-22816CVE-2022-22817 Rocky Linux Updated 4 February 2026
  • SUSE-SU-2022:1729-1

    Security update for ardana-barbican, grafana, openstack-barbican, openstack-cinder, openstack-heat-gbp, openstack-horizon-plugin-gbp-ui, openstack-ironic, openstack-keystone, openstack-neutron-gbp, python-lxml,…

    CVE-2018-19787CVE-2020-27783CVE-2021-28957CVE-2021-38155 SUSE Updated 4 February 2026
  • SUSE-SU-2024:0290-1

    Security update for python-Pillow

    CVE-2022-22817CVE-2023-50447 SUSE Updated 4 February 2026
  • UBUNTU-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.

    CVE-2022-22817 Ubuntu Updated 2 April 2026
  • USN-5227-1

    pillow vulnerabilities

    CVE-2021-23437CVE-2021-34552CVE-2022-22815CVE-2022-22816 Ubuntu Updated 27 April 2026
  • USN-5227-2

    pillow vulnerabilities

    CVE-2021-23437CVE-2021-34552CVE-2022-22815CVE-2022-22816 Ubuntu Updated 29 June 2026
  • USN-5227-3

    pillow vulnerability

    CVE-2022-22817 Ubuntu Updated 27 April 2026
  • openSUSE-SU-2024:11814-1

    python310-Pillow-9.0.1-1.1 on GA media

    CVE-2022-22817CVE-2022-24303 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:14645-1

    python311-Pillow-11.1.0-1.1 on GA media

    CVE-2022-22817CVE-2022-24303CVE-2022-30595 openSUSE Updated 4 February 2026

References