Skip to content
Heist/ feed
Back to feed
UnratedFix available

Fix CVE(s): CVE-2023-44271, CVE-2023-50447

Type: advisorySources: OSV

* SECURITY UPDATE: arbitrary code execution via the ImageMath.eval environment parameter (ELSCVE-187962) - debian/patches/CVE-2023-50447.patch: reject environment keys that contain "__" or shadow a builtin before they are merged into the execution namespace in src/PIL/ImageMath.py, so an injected name can no longer satisfy the expression allowlist. Adds a regression test in Tests/test_imagemath.py. - CVE-2023-50447 * SECURITY UPDATE: denial of service via unbounded allocation when measuring or rendering very long strings - debian/patches/CVE-2023-44271.patch: add ImageFont.MAX_STRING_LENGTH and check it at each text entry point in src/PIL/ImageFont.py before the C layer allocates. Adds a regression test in Tests/test_imagefont.py. - CVE-2023-44271

Products
python-pil, python-pil-doc, python-pil.imagetk, python3-pil, python3-pil.imagetk
Affected versions
Not specified
Fixed versions
5.1.0-1ubuntu0.8+tuxcare.els1
CVEs
CVE-2023-44271, CVE-2023-50447
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 11:42 UTC · Revision 1

Source evidence

Fix CVE(s): CVE-2023-44271, CVE-2023-50447

core-osv · Original source

Published 21 Sept 2026, 12:24 UTC

* SECURITY UPDATE: arbitrary code execution via the ImageMath.eval environment parameter (ELSCVE-187962) - debian/patches/CVE-2023-50447.patch: reject environment keys that contain "__" or shadow a builtin before they are merged into the execution namespace in src/PIL/ImageMath.py, so an injected name can no longer satisfy the expression allowlist. Adds a regression test in Tests/test_imagemath.py. - CVE-2023-50447 * SECURITY UPDATE: denial of service via unbounded allocation when measuring or rendering very long strings - debian/patches/CVE-2023-44271.patch: add ImageFont.MAX_STRING_LENGTH and check it at each text entry point in src/PIL/ImageFont.py before the C layer allocates. Adds a regression test in Tests/test_imagefont.py. - CVE-2023-44271

osv:CLSA-2026-1789993475

python-pil

Fixed versions: 5.1.0-1ubuntu0.8+tuxcare.els1

python-pil-doc

Fixed versions: 5.1.0-1ubuntu0.8+tuxcare.els1

python-pil.imagetk

Fixed versions: 5.1.0-1ubuntu0.8+tuxcare.els1

python3-pil

Fixed versions: 5.1.0-1ubuntu0.8+tuxcare.els1

python3-pil.imagetk

Fixed versions: 5.1.0-1ubuntu0.8+tuxcare.els1

Complete source record
{
  "id": "9d642785ccc14ff6f0e1494488a8753f5d703674a28bcf838409ab46c5fa7984",
  "url": "https://osv.dev/vulnerability/CLSA-2026-1789993475",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Fix CVE(s): CVE-2023-44271, CVE-2023-50447",
    "summary": "* SECURITY UPDATE: arbitrary code execution via the ImageMath.eval environment parameter (ELSCVE-187962) - debian/patches/CVE-2023-50447.patch: reject environment keys that contain \"__\" or shadow a builtin before they are merged into the execution namespace in src/PIL/ImageMath.py, so an injected name can no longer satisfy the expression allowlist. Adds a regression test in Tests/test_imagemath.py. - CVE-2023-50447 * SECURITY UPDATE: denial of service via unbounded allocation when measuring or rendering very long strings - debian/patches/CVE-2023-44271.patch: add ImageFont.MAX_STRING_LENGTH and check it at each text entry point in src/PIL/ImageFont.py before the C layer allocates. Adds a regression test in Tests/test_imagefont.py. - CVE-2023-44271",
    "evidence": "osv:CLSA-2026-1789993475",
    "products": [
      {
        "name": {
          "value": "python-pil",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1.0-1ubuntu0.8+tuxcare.els1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "python-pil-doc",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1.0-1ubuntu0.8+tuxcare.els1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "python-pil.imagetk",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1.0-1ubuntu0.8+tuxcare.els1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "python3-pil",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1.0-1ubuntu0.8+tuxcare.els1",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "python3-pil.imagetk",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1.0-1ubuntu0.8+tuxcare.els1",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CLSA-2026-1789993475",
      "aliases": [
        "CLSA-2026-1789993475"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1.0-1ubuntu0.8+tuxcare.els1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-pil",
            "purl": "pkg:deb/tuxcare/python-pil?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1789993475.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1.0-1ubuntu0.8+tuxcare.els1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-pil-doc",
            "purl": "pkg:deb/tuxcare/python-pil-doc?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1789993475.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1.0-1ubuntu0.8+tuxcare.els1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-pil.imagetk",
            "purl": "pkg:deb/tuxcare/python-pil.imagetk?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1789993475.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1.0-1ubuntu0.8+tuxcare.els1"
                }
              ]
            }
          ],
          "package": {
            "name": "python3-pil",
            "purl": "pkg:deb/tuxcare/python3-pil?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1789993475.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1.0-1ubuntu0.8+tuxcare.els1"
                }
              ]
            }
          ],
          "package": {
            "name": "python3-pil.imagetk",
            "purl": "pkg:deb/tuxcare/python3-pil.imagetk?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1789993475.json"
          }
        }
      ],
      "modified": "2026-10-26T09:32:04.224027559Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-44271",
        "CVE-2023-50447"
      ],
      "references": [
        "https://errata.tuxcare.com/els_os/ubuntu18.04els/CLSA-2026-1789993475.html",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-44271",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-50447"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-44271",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2023-50447",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 449584,
  "published_at": "2026-09-21T12:24:47+00:00"
}