Skip to content
High 8.7

python-semverに正規表現の過剰な処理による脆弱性、サービス妨害のおそれ

CVE-2026-140095 First seen on SecPulse

Summary

python-semverの3.1.3より前のバージョンには、細工されたバージョン文字列を処理すると処理が極端に長引き、Pythonプロセスを占有されてサービス妨害(DoS)が起きるおそれのある脆弱性があります。CVSS v4の深刻度は8.7(高)です。修正版の3.1.3で対応しているため、3.1.3以降へ更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

python-semverの3.1.3より前のバージョンには、細工されたバージョン文字列を処理すると処理が極端に長引き、Pythonプロセスを占有されてサービス妨害(DoS)が起きるおそれのある脆弱性があります。CVSS v4の深刻度は8.7(高)です。修正版の3.1.3で対応しているため、3.1.3以降へ更新してください。

Affected packages

PackageAffected → Fixed
python-semverpython-semver —
pipsemver
< 3.1.3→ 3.1.3
PyPIsemver
< 3.1.3→ 3.1.3

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details