{"id":"CVE-2026-140095","aliases":["CVE-2026-140095"],"related":[],"kind":"vulnerability","state":"published","title":"python-semver: super-quadratic ReDoS in _LAST_NUMBER via attacker-controlled version strings","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T22:15:01.996Z","modified":"2026-11-30T23:17:24.080Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"< 3.1.3","status":"affected"}],"vendor":"python-semver","product":"python-semver","source":"cvelist"}],"references":[{"url":"https://github.com/python-semver/python-semver/security/advisories/GHSA-3qgw-g8j9-rcg4","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/python-semver/python-semver/commit/fbf1e8f21c050256579de9199e53b6807e49014a","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/python-semver/python-semver/releases/tag/3.1.3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-140095","url":"https://www.cve.org/CVERecord?id=CVE-2026-140095","licence":"CVE Terms of Use","modified":"2026-11-30T22:15:01.996Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-140095","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140095","licence":"Public domain","modified":"2026-11-30T23:17:24.080Z"}],"updatedAt":"2026-11-30T23:32:32.309Z","epss":{"score":0.00585,"percentile":0.49329,"date":"2026-12-01T12:00:22.000Z"}}