Security mailing lists by PureSourceCode

CVE-2026-137940

MEDIUM 5.7CVSS 4.0

Pillow before 13.1.0 Crash via ImageMath INT32_MIN Division by -1

Pillow before 13.1.0 contains an integer overflow in the ImageMath integer divide and modulo operators (DIV_I and MOD_I in src/_imagingmath.c), which guard only against a zero divisor, so dividing INT32_MIN by -1 raises a hardware divide exception. Attackers can supply a crafted TIFF that decodes to a mode I image containing INT32_MIN, crashing applications that run an ImageMath divide or modulo with a -1 operand on it.

Published
27 Nov 2026
Last modified
1 Dec 2026
Assigned by
1a4f025a-074d-4105-b4e2-52bd8eabe2ea
NVD status
Awaiting Analysis
Weakness
CWE-190
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD 1a4f025a-074d-4105-b4e2-52bd8eabe2ea (Secondary) CVSS 4.0 MEDIUM 5.7 CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVE List AISLE CVSS 4.0 MEDIUM 5.7 CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD 1a4f025a-074d-4105-b4e2-52bd8eabe2ea (Secondary) CVSS 3.1 MEDIUM 4.7 CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
CVE List AISLE CVSS 3.1 MEDIUM 4.7 CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List https://pypi.python.org pillow < 13.1.0 13.1.0

References

History

  • 1 Dec 2026 20:28 UTC · CVE List: updated (other details)
  • 1 Dec 2026 20:28 UTC · NVD: updated (other details)
  • 30 Nov 2026 17:32 UTC · NVD: description edited
  • 30 Nov 2026 16:33 UTC · CVE List: affected list changed (1 entry); description edited
  • 27 Nov 2026 14:57 UTC · NVD: first stored (published 27 Nov 2026)
  • 27 Nov 2026 13:57 UTC · CVE List: first stored (published 27 Nov 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.