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_app をフォロー2026/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。