Skip to content
This page tracks the Ubuntu fix status. The vulnerability itself is described on the main CVE page. View CVE-2026-137940 →
Unrated

Pillow through 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...

UBUNTU-CVE-2026-137940 First seen on SecPulse

Affected packages

PackageAffected → Fixed
Ubuntu:Pro:14.04:LTSpillow
All versions→ Not listed
Ubuntu:Pro:16.04:LTSpillow
All versions→ Not listed
Ubuntu:Pro:18.04:LTSpillow
All versions→ Not listed
Ubuntu:Pro:20.04:LTSpillow
All versions→ Not listed
Ubuntu:Pro:20.04:LTSpillow-python2
All versions→ Not listed
Ubuntu:22.04:LTSpillow
All versions→ Not listed
Ubuntu:24.04:LTSpillow
All versions→ Not listed
Ubuntu:26.10pillow
All versions→ Not listed
Ubuntu:26.04:LTSpillow
All versions→ Not listed

This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.

Original description The description as published by the source.

Pillow through 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.

Source: OSV.dev (Open Source Vulnerabilities) OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details