CVE-2026-140095
8.7HighPublished Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v4.010
- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User action
- None
- Impact
- High impact on availability
- Weakness
- CWE-1333
What an attacker gets
Unauthenticated attackers can cause a denial of service by crashing the Python process. They trigger this by providing a crafted version string that forces the application into super-quadratic backtracking.
Root cause
A regular expression with ambiguous repeated quantifiers in the build identifier parsing logic leads to catastrophic backtracking.
Affected versions
python-semver versions prior to 3.1.3
CVSS v4.0 · 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Fix & remediation
Upgrade to python-semver version 3.1.3 or later. If you cannot upgrade immediately, sanitize input strings to ensure build identifiers do not contain excessive non-digit characters.
$ pip install --upgrade python-semverAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.
References
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-909589.1CriticalUnauthenticated attackers can brute-force user passwords via SMB without triggering account lockouts. This bypasses Kerberos-based lockout policies when AD-trust is enabled.
- CVE-2026-1401027.5HighUnauthenticated attackers can crash your Node.js gateway process by sending a specific Upgrade request. This leads to a denial of service for the entire application.
- CVE-2026-1400979.1CriticalUnauthenticated attackers can execute arbitrary code or read local files on your development server. This happens when the dev server is exposed to the network, allowing attackers to inject malicious module identifiers.
- CVE-2026-1398637.3HighRemote unauthenticated attackers can execute arbitrary SQL commands via the fetchProductImageUrl.php script. This allows them to read, modify, or delete data from the application database.
- CVE-2026-1398627.3HighRemote attackers can execute arbitrary SQL queries to read or modify database contents. This requires no authentication and targets the categoriesId parameter.
- CVE-2026-1398617.3HighRemote unauthenticated attackers can execute arbitrary SQL queries against your database. This is possible by injecting malicious input into the brandId parameter in fetchSelectedBrand.php.