CVE-2026-137940
Last modified
CVE-2026-137940 is a medium-severity vulnerability rated 4.7/10 on the CVSS scale. 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..
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| python-pillow | Pillow | <= 13.1.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-137940?
How severe is CVE-2026-137940?
How do I fix CVE-2026-137940?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-13793Insufficient policy enforcement in SVG in Google Chrome prio…6.5
- CVE-2026-137936Payload 3.25.0 before 3.90.0 and 4.0.0-canary.0 before 4.0.0…5.3
- CVE-2026-137937PDFio before 1.6.5 contains an integer underflow in _pdfioCr…6.1
- CVE-2026-137938Sparkle before 2.9.6 contains a time-of-check time-of-use ra…7
- CVE-2026-137939Sparkle 2.2.0 before 2.9.6 contains a link following vulnera…7.8
- CVE-2026-13794Insufficient validation of untrusted input in WebAppInstalls…7.5
- CVE-2026-137941A flaw was found in GIMP. The Levels configuration setter do…7.8
- CVE-2026-137942Roundcube Webmail before 1.6.19 and 1.7.x before 1.7.4 conta…5.4
- CVE-2026-137943Roundcube Webmail before 1.6.19 and 1.7.x before 1.7.4 conta…6.1
- CVE-2026-13795Insufficient policy enforcement in Chrome for iOS in Google …6.5
- CVE-2026-137951libexpat 2.6.0 through 2.11.0 built with XML_GE=0 and XML_UN…4.8
- CVE-2026-137952svglib before 2.5.0 contains a denial of service vulnerabili…7.5
Are you affected by CVE-2026-137940?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
