Skip to main content
VulnerabilityPublished

CVE-2026-140095: python-semver · Super-quadratic ReDoS in _LAST_NUMBER via attacker-controlled version strings

Affects weaviate-cliSource GCVE Database

0
Compare
Authoritative record:CVE-2026-140095· High 8.7

Not known to be exploited · CVSS 8.7 High : upgrade to 3.1.3 soon.

Data as of 2 Dec 2026, 21:48 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.08.7
Patch
Available – fixed in 3.1.3
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.

What to do

Upgrade semver to 3.1.3.

Affected software

ProductAffectedFixed in
Homebrewweaviate-clipkg:brew/weaviate-cliOther threatsAffected
  • >=3.0.2
Fixed in–
PyPIsemverpkg:pypi/semverOther threatsAffected
  • <3.1.3
Fixed in
  • 3.1.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Users should avoid passing untrusted or excessively long build metadata strings to the bump_build() method or any API that triggers _increment_string. Implement input validation to limit the length of build metadata strings before parsing. Monitor python-semver project updates for a future patch addressing this ReDoS issue.

Description

python-semver version 3.1.0 and later contains a Regular Expression Denial of Service (ReDoS) vulnerability in the _LAST_NUMBER regex used by the bump_build() method. The regex exhibits super-quadratic catastrophic backtracking when processing long build metadata strings composed entirely of letters without digits. This causes the parsing and incrementing of version build metadata to become extremely slow, potentially blocking processing for many seconds or minutes. The vulnerability is exploitable by supplying a crafted semantic version string with a long alphabetic build identifier.

References

Community reviews

Loading reviews…