{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-137940 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software calls ImageMath. Many projects that include it are not exposed.","fix":"No fix has been published for CVE-2026-137940 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-137940 is a medium-severity integer overflow vulnerability in python-pillow Pillow, published on 27 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-137940 and fix it if it is affected.\n\nWhat it is: CVE-2026-137940 is a medium-severity integer overflow vulnerability in python-pillow Pillow, published on 27 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-137940 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software calls ImageMath. Many projects that include it are not exposed.\n\nAffected product: python-pillow Pillow. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n   If an affected version is present, also search the code for calls to ImageMath and report whether any exist.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-137940/ (Markdown: https://insights.sbomify.com/CVE-2026-137940/index.md)","id":"CVE-2026-137940","markdown":"https://insights.sbomify.com/CVE-2026-137940/index.md","name":"CVE-2026-137940","record":{"aliases":["DEBIAN-CVE-2026-137940","GHSA-fmhg-jj2c-g77v"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"no_fix_stated","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python imaging library","requires_auth":"none","requires_specific_call":true,"summary":"A crafted TIFF can crash applications using Pillow ImageMath DIV_I or MOD_I with a -1 operand; Python apps processing untrusted images should care.","user_interaction":"required","vuln_class":"integer_overflow","vulnerable_functions":["ImageMath"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"AISLE","component":null,"cpe":[],"cvss":{"score":5.7,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Pillow through 13.1.0 Crash via ImageMath INT32_MIN Division by -1","id":"CVE-2026-137940","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"integer_overflow","year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":2,"n_vendor_status":0,"next":{"headline":"Gimp: gimp: heap out-of-bounds write via unvalidated levels channel property","id":"CVE-2026-137941"},"nickname":null,"packages":[],"prev":{"headline":"Sparkle 2.2.0 before 2.9.6 Local Privilege Escalation via Root Launcher Cache Symlink","id":"CVE-2026-137939"},"products":["Pillow"],"published":"2026-11-27","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-27","vendor_status":[],"vendors":["python-pillow"]},"summary":"A crafted TIFF can crash applications using Pillow ImageMath DIV_I or MOD_I with a -1 operand; Python apps processing untrusted images should care.","url":"https://insights.sbomify.com/CVE-2026-137940/"}