Security mailing lists by PureSourceCode

CVE-2026-96641

MEDIUM 6.5CVSS 3.1

Pillow: Reachable undefined behavior in native integer operations, potentially leading to denial of service or logic integrity compromise

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
21 Oct 2026
Last modified
29 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-190
Also known as
BIT-pillow-2026-96641GHSA-4rm8-3hmm-39fgPYSEC-2026-4340
Sources
NVDJSONOSV GHSA-4rm8-3hmm-39fgJSONOSV PYSEC-2026-4340JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
OSV PyPA CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD python pillow
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
< 13.0.0 13.0.0
OSV PyPI pillow < 13.0.0 13.0.0

References

History

  • 25 Nov 2026 21:22 UTC · NVD: first stored (published 21 Oct 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Oct 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Oct 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.