---
title: "CVE-2026-140095"
canonical_url: "https://pkgseek.com/security/CVE-2026-140095"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "unknown"
---

# CVE-2026-140095

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.

CVE-2026-140095 is rated UNKNOWN, with 1 indexed affected package builds across 1 distributions.

- **Severity / Score**: UNKNOWN
- **Affected builds**: 1
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | python3-semver | 3.0.2-1 | — |
