8.7

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

Received
AliasesGHSA-3qgw-g8j9-rcg4DEBIAN-CVE-2026-140095CGA-2xrh-pgc2-v7h8
Published 30-11-2026Last modified 03-12-2026

Vulnerability summary

CVE-2026-140095 is a high (CVSS 8.7) vulnerability in python-semver. EPSS estimates a 0.86% chance of exploitation in the next 30 days, higher than 59.7% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.86%
0%100%
Low · Change unavailable
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 30-11-2026
    PublishedVulnerability first disclosed.
  2. 03-12-2026
    Last modifiedVulnerability information updated.

Description

python-semver is a Python package for working with Semantic Versioning. Prior to 3.1.3, semver.Version.parse accepted an arbitrarily long alphabetic BUILD_IDENTIFIER and bump_build passed it through _increment_string to Version._LAST_NUMBER in src/semver/version.py. The expression contained ambiguous repeated non-digit quantifiers around a required digit run, causing super-quadratic backtracking when no digit was present and allowing an attacker-controlled valid version string to monopolize the Python process and deny service. This issue is fixed in version 3.1.3.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

0.86%

Chance of exploitation in the next 30 days

Percentile

60%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

01-12-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard37 products
  • datadog-agent-7.78All versions (No fix recorded)
  • datadog-agent-7.78-core-integrationsAll versions (No fix recorded)
  • datadog-agent-7.79All versions (No fix recorded)
  • datadog-agent-7.79-core-integrationsAll versions (No fix recorded)
  • datadog-agent-7.80-core-integrationsAll versions (No fix recorded) | < 7.80.4-r33
Wolfi7 products
  • datadog-agent-7.78All versions (No fix recorded)
  • datadog-agent-7.78-core-integrationsAll versions (No fix recorded)
  • datadog-agent-7.79All versions (No fix recorded)
  • datadog-agent-7.79-core-integrationsAll versions (No fix recorded)
  • datadog-agent-7.80-core-integrationsAll versions (No fix recorded) | < 7.80.4-r33
Debian1 product
  • python-semverAll versions (No fix recorded)
PyPI1 product
  • semver< 3.1.3
Python-semver1 product
Ubuntu1 product
  • python-semverAll versions (No fix recorded)

6 vendors · 48 products

References

9 links