{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-96641","id":"CVE-2026-96641","title":"Pillow integer overflow in PILfont text-width calculation","description":"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 tha","descriptionLong":"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.","published":"2026-10-21T20:51:24.388Z","updated":"2026-11-15T17:27:27.782628800Z","reserved":"2026-09-23T14:35:50.130Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"}],"rating":"medium","products":["python-pillow Pillow"],"affectedProducts":[{"vendor":"python-pillow","product":"Pillow","defaultStatus":null,"versions":[{"version":"< 13.0.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow","ranges":["<13.0.0"],"fixed":["13.0.0"],"advisory":"GHSA-4rm8-3hmm-39fg"}],"cwes":["CWE-190"],"aliases":["BIT-pillow-2026-96641","GHSA-4rm8-3hmm-39fg","PYSEC-2026-4340"],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4rm8-3hmm-39fg","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://github.com/python-pillow/Pillow/pull/10010","tags":["x_refsource_MISC","Issue Tracking","fix","web","report"]},{"url":"https://github.com/python-pillow/Pillow/commit/80de4be9e38d3a6148dd4d8491eb80cd12b760a4","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC","Release Notes","web","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/96xxx/CVE-2026-96641.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-96641","tags":["advisory"]},{"url":"https://github.com/python-pillow/Pillow","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00364,"epssPercentile":0.30825,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-96641","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-96641","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-96641","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4rm8-3hmm-39fg","ok":true,"note":"GHSA-4rm8-3hmm-39fg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-96641","ok":true,"note":"scored 2026-11-18"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}