CVE catalog

CVE-2026-96641

pillow affected and fixed versions

[CVE catalog]

Pillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but does not check negative advances against INT_MIN. Repeating a signed 16-bit advance of -32768 can therefore execute a signed C integer overflow in xsize += dx, producing a large positive width from a negative mathematical result. Applications that use getlength(), getsize(), or derived layout, quota, serialization, or allocation calculations can experience logic-integrity errors or resource consumption, while the high-level mask path commonly retains a decompression-bomb check. This issue is fixed in version 13.0.0.

Severity
Medium · CVSS 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.35% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Version impact has not been established. The original provider fields are retained below.

Provider details and historical evidence
Original provider fields
{
  "package_releases": [
    {
      "name": "pillow",
      "status": "fixed",
      "release": "sid",
      "version": "13.0.0-1"
    },
    {
      "name": "pillow",
      "status": "vulnerable",
      "release": "forky",
      "version": "12.3.0-1"
    },
    {
      "name": "pillow",
      "status": "vulnerable",
      "release": "trixie",
      "version": "11.1.0-5+deb13u4"
    },
    {
      "name": "pillow",
      "status": "vulnerable",
      "release": "trixie-security",
      "version": "11.1.0-5+deb13u3"
    },
    {
      "name": "pillow",
      "status": "vulnerable",
      "release": "bookworm",
      "version": "9.4.0-1.1+deb12u1"
    },
    {
      "name": "pillow",
      "status": "vulnerable",
      "release": "bookworm-security",
      "version": "9.4.0-1.1+deb12u1"
    }
  ],
  "fixed_versions": [
    {
      "bug": null,
      "name": "pillow",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "13.0.0-1"
    },
    {
      "bug": null,
      "name": "pillow",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": ""
    },
    {
      "bug": null,
      "name": "pillow",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": ""
    },
    {
      "bug": null,
      "name": "pillow",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": ""
    }
  ],
  "distribution_packages": [
    {
      "name": "pillow",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "6.1.0-1",
        "6.1.0-1build1",
        "6.2.1-2",
        "7.0.0-4",
        "7.0.0-4build1",
        "7.0.0-4ubuntu0.1",
        "7.0.0-4ubuntu0.2",
        "7.0.0-4ubuntu0.3",
        "7.0.0-4ubuntu0.4",
        "7.0.0-4ubuntu0.5",
        "7.0.0-4ubuntu0.6",
        "7.0.0-4ubuntu0.7",
        "7.0.0-4ubuntu0.8",
        "7.0.0-4ubuntu0.9",
        "7.0.0-4ubuntu0.9+esm1"
      ],
      "ecosystem": "deb",
      "fixed_version": "",
      "provider_record_id": "UBUNTU-CVE-2026-96641"
    },
    {
      "name": "pillow-python2",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "6.2.1-3~build1",
        "6.2.1-3",
        "6.2.1-3ubuntu0.1~esm1",
        "6.2.1-3ubuntu0.1~esm2"
      ],
      "ecosystem": "deb",
      "fixed_version": "",
      "provider_record_id": "UBUNTU-CVE-2026-96641"
    },
    {
      "name": "pillow",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "22.04",
      "versions": [
        "8.1.2+dfsg-0.3",
        "9.0.0-1",
        "9.0.1-1",
        "9.0.1-1build1",
        "9.0.1-1ubuntu0.1",
        "9.0.1-1ubuntu0.2",
        "9.0.1-1ubuntu0.3",
        "9.0.1-1ubuntu0.4",
        "9.0.1-1ubuntu0.5"
      ],
      "ecosystem": "deb",
      "fixed_version": "",
      "provider_record_id": "UBUNTU-CVE-2026-96641"
    },
    {
      "name": "pillow",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "24.04",
      "versions": [
        "10.0.0-1",
        "10.1.0-1",
        "10.2.0-1",
        "10.2.0-1build1",
        "10.2.0-1ubuntu1",
        "10.2.0-1ubuntu1.2",
        "10.2.0-1ubuntu1.3"
      ],
      "ecosystem": "deb",
      "fixed_version": "",
      "provider_record_id": "UBUNTU-CVE-2026-96641"
    },
    {
      "name": "pillow",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "26.10",
      "versions": [
        "12.1.1-2ubuntu1",
        "12.3.0-1ubuntu1"
      ],
      "ecosystem": "deb",
      "fixed_version": "",
      "provider_record_id": "UBUNTU-CVE-2026-96641"
    },
    {
      "name": "pillow",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "26.04",
      "versions": [
        "11.3.0-1ubuntu1",
        "11.3.0-1ubuntu2",
        "12.0.0-1ubuntu1",
        "12.1.1-1ubuntu1",
        "12.1.1-2ubuntu1",
        "12.1.1-2ubuntu1.1",
        "12.1.1-2ubuntu1.2",
        "12.1.1-2ubuntu1.3"
      ],
      "ecosystem": "deb",
      "fixed_version": "",
      "provider_record_id": "UBUNTU-CVE-2026-96641"
    },
    {
      "name": "pillow",
      "ranges": [
        {
          "fixed": "13.0.0",
          "introduced": "",
          "last_affected": "",
          "start_excluding": ""
        }
      ],
      "ecosystem": "cpe",
      "fixed_version": "13.0.0",
      "provider_record_id": "NVD-CVE-2026-96641"
    }
  ]
}

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [python3-pil]Unknown

    Source package: [pillow]

    Details (4)
    • 9.4.0-1.1+deb12u1 · amd64 · bookworm

      Affected

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · arm64 · bookworm

      Affected

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · amd64 · bookworm-security

      Affected

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · arm64 · bookworm-security

      Affected

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

  • Source package: [pillow]

    Details (4)
    • 9.4.0-1.1+deb12u1 · amd64 · bookworm

      Affected

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · arm64 · bookworm

      Affected

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · amd64 · bookworm-security

      Affected

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · arm64 · bookworm-security

      Affected

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

  • Source package: [pillow]

    Details (4)
    • 9.4.0-1.1+deb12u1 · all · bookworm

      Affected

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · all · bookworm

      Affected

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · all · bookworm-security

      Affected

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · all · bookworm-security

      Affected

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

[Debian 13 (Trixie)]

  • [python3-pil]Unknown

    Source package: [pillow]

    Details (4)
    • 11.1.0-5+deb13u4 · amd64 · trixie

      Affected

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u4 · arm64 · trixie

      Affected

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u3 · amd64 · trixie-security

      Affected

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u3 · arm64 · trixie-security

      Affected

      dsa · pillow · debian · 13

  • Source package: [pillow]

    Details (4)
    • 11.1.0-5+deb13u4 · amd64 · trixie

      Affected

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u4 · arm64 · trixie

      Affected

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u3 · amd64 · trixie-security

      Affected

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u3 · arm64 · trixie-security

      Affected

      dsa · pillow · debian · 13

  • Source package: [pillow]

    Details (4)
    • 11.1.0-5+deb13u4 · all · trixie

      Affected

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u4 · all · trixie

      Affected

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u3 · all · trixie-security

      Affected

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u3 · all · trixie-security

      Affected

      dsa · pillow · debian · 13

Observed:

References