Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-140095— python-semver: super-quadratic ReDoS in _LAST_NUMBER via attacker-controlled version strings

Quick assessment

Affected
python-semver python-semver
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

python-semver 是一个用于处理语义化版本(Semantic Versioning)的 Python 包。在 3.1.3 之前, 会接受任意长度的字母型 ;随后 会将其经 传入 (位于 )。该正则表达式在必须出现的数字串周围包含了歧义的重复非数字量词,当字符串中没有数字时会导致超二次级回溯(super-quadratic backtracking),使攻击者可控的合法版本字符串能够独占 Python 进程并造成拒绝服务。该问题已在版本 3.1.3 中修复。

CVSS 8.7 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-140095

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
python-semver: super-quadratic ReDoS in _LAST_NUMBER via attacker-controlled version strings
Source: CVE Program / CVE List V5
Vulnerability Description
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 Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-1333
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
python-semver python-semver < 3.1.3 -

II. Public POCs for CVE-2026-140095

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-140095

请登录查看更多情报信息。

Other References for CVE-2026-140095 (3)

IV. Related Vulnerabilities