python-semver: Super-quadratic ReDoS in _LAST_NUMBER via attacker-controlled version strings
受影响
| 软件包 | 受影响版本 | 修复版本 |
|---|---|---|
| pip:semver | <= 3.1.2 | 3.1.3 |
python-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…
在 X 上接收快讯漏洞利用、重大泄露和故障,附应对措施。
关注 @vulnpulse_app2026/12/02 04:08,GitHub Advisory Database 发布了“python-semver: Super-quadratic ReDoS in _LAST_NUMBER via attacker-controlled version strings”(类型:漏洞公告)。严重程度为“高危”(high)。相关技术:Python。CVE:CVE-2026-140095。