PT-2026-164408
CVE-2026-140095
·
Published
2026-11-30
·
Updated
2026-12-01
Description by
CVSS 4.0
8.7
HighMetricsAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
python-semver versions prior to 3.1.3
Description
An issue exists where
semver.Version.parse accepts an arbitrarily long alphabetic BUILD IDENTIFIER. When bump build passes this identifier through increment string to Version. LAST NUMBER in src/semver/version.py, an expression with ambiguous repeated non-digit quantifiers around a required digit run causes super-quadratic backtracking if no digit is present. This allows a specially crafted version string to monopolize the Python process, resulting in a denial of service.Recommendations
Update to version 3.1.3.
Found an issue in the description? Have something to add? Feel free to write us 👾