{"id":"ghsa-ghsa-3qgw-g8j9-rcg4","seq":12154371,"kind":"advisory","title":"python-semver: Super-quadratic ReDoS in _LAST_NUMBER via attacker-controlled version strings","url":"https://github.com/advisories/GHSA-3qgw-g8j9-rcg4","permalink":"https://vulnpulse.app/items/ghsa-ghsa-3qgw-g8j9-rcg4","summary":"影響: pip:semver <= 3.1.2 → 3.1.3\npython-semver/python-semver is the Python Semantic Versioning library published on PyPI as semver. At src/semver/version.py:95 it defines: python _LAST_NUMBER = re.compile(r\"(?:[^\\d](\\d+)[^\\d])+\") The pattern is used by bump_build() to find and increment the last numeric component of a version string's build metadata. Its outer repeated group (?:[^\\d](\\d+)[^\\d])+ contains two unbounded [^\\d] quantifiers plus \\d+, and adjacent repetitions can consume the same run of non-digit characters. When th…","severity":"high","cvss":null,"techs":["python"],"cves":["CVE-2026-140095"],"tags":["GHSA-3qgw-g8j9-rcg4","semver"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-12-01T19:08:01.000Z","fetched_at":"2026-12-01T21:20:51.440Z"}