Skip to content
Heist/ feed
Back to feed
CriticalFix available

pillow — security advisory

Type: advisorySources: OSVAdvisory ID: 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.

Products
pillow
Affected versions
Not specified
Fixed versions
9.0.0-1
CVEs
CVE-2022-22817
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:43 UTC · Revision 1

Source evidence

DEBIAN-CVE-2022-22817

core-osv · Original source

Published 10 Jan 2022, 14:12 UTC

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.

osv:DEBIAN-CVE-2022-22817

pillow

Fixed versions: 9.0.0-1

pillow

Fixed versions: 9.0.0-1

pillow

Fixed versions: 9.0.0-1

Complete source record
{
  "id": "bbba62ce3eeea0b1535134eae5704f930fbfa551b62b7acab7a27ab85c675e2b",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-22817",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2022-22817",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2022-22817",
    "products": [
      {
        "name": {
          "value": "pillow",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.0.0-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "pillow",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.0.0-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "pillow",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.0.0-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2022-22817",
      "aliases": [
        "DEBIAN-CVE-2022-22817"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9.0.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "pillow",
            "purl": "pkg:deb/debian/pillow?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-22817.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9.0.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "pillow",
            "purl": "pkg:deb/debian/pillow?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-22817.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9.0.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "pillow",
            "purl": "pkg:deb/debian/pillow?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-22817.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T08:01:41.276487285Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-22817"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2022-22817"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-22817",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 323094,
  "published_at": "2022-01-10T14:12:55.16+00:00"
}