Source: python-semver Version: 3.0.2-1 X-Debbugs-CC: [email protected] Severity: important Tags: security upstream
Hi, The following vulnerability was published for python-semver. CVE-2026-140095[0]: | 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. If you fix the vulnerability please also make sure to include the CVE (Common Vulnerabilities & Exposures) id in your changelog entry. For further information see: [0] https://security-tracker.debian.org/tracker/CVE-2026-140095 https://www.cve.org/CVERecord?id=CVE-2026-140095 [1] https://github.com/python-semver/python-semver/security/advisories/GHSA-3qgw-g8j9-rcg4 [2] https://github.com/python-semver/python-semver/commit/fbf1e8f21c050256579de9199e53b6807e49014a Please adjust the affected versions in the BTS as needed. Regards, Salvatore

