Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-140095
Published:November 30, 2026
Updated:December 01, 2026
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.
Affected Packages
semver (CONDA):
Affected version(s) >=2.4.1 <3.1.3 || >=3.0.0 <3.1.3
Fix Suggestion:
Update to version 3.1.3
https://github.com/python-semver/python-semver.git (GITHUB):
Affected version(s) >=2.4.1 <3.1.3 || >=3.0.0-rc.1 <3.1.3
Fix Suggestion:
Update to version 3.1.3
semver (PYTHON):
Affected version(s) >=2.3.0 <3.1.3 || >=3.0.0rc1 <3.1.3
Fix Suggestion:
Update to version 3.1.3
semver (PYTHON):
Affected version(s) >=0.0.1 <3.1.3
Fix Suggestion:
Update to version 3.1.3
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Inefficient Regular Expression Complexity
EPSS
Base Score:
0.58