StraitOfVuln
Latest / CVE-2026-140095

CVE-2026-140095

HighCVSS 8.7 (v4.0)Received
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-140095
Published / updated
30 Nov 2026, 23:17 UTC · last modified 03 Dec 2026, 17:17 UTC
Severity
HIGH
CVSS score
8.7 · v4.0 · 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · Attack vector: Network
Affected vendor
python-semver
Affected products
python-semver
Affected versions
python-semver: < 3.1.3
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
Not stated in the data. Check the vendor advisory.
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.86% probability of exploitation in the next 30 days · 60% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
security-advisories@github.com