CVE-2026-140095
python-semver: super-quadratic ReDoS in _LAST_NUMBER via attacker-controlled version strings
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.
INFO
Published Date :
Nov. 30, 2026, 10:15 p.m.
Last Modified :
Nov. 30, 2026, 10:15 p.m.
Remotely Exploit :
No
Source :
GitHub_M
Solution
- Update python-semver to version 3.1.3 or later.
- Ensure build processes use the updated library.
- Validate version parsing and bumping logic.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-140095 vulnerability anywhere in the article.