Are you affected by CVE-2026-140095?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)CVE-2026-140095
python-semver is a Python package for working with Semantic Versioning ...
Overview
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: OX vulnerability database
Am I affected?
Answer a few questions about your setup. Everything stays in your browser.
Severity
8.7 · HIGH
CVSS 4.0 base score, scored by GitHub.
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Vulnerable system confidentiality
- None
- Vulnerable system integrity
- None
- Vulnerable system availability
- High
- Subsequent system confidentiality
- None
- Subsequent system integrity
- None
- Subsequent system availability
- None
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
Weakness: CWE-1333
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | semver | <3.1.3 | 3.1.3 |
Open a package to see all its vulnerabilities.
Operating systems · 15 fixes
chainguard 1 release · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| litellm | 1.112.1-r0 | |
| flagsmith-fips | 2.296.0-r1 | |
| flagsmith | 2.296.0-r2 | |
| redash | 26.9.0-r3 | |
| localstack | 4.14.0-r41 | |
| prometheus-prefect-exporter | 4.2.0-r1 |
3 more rows
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | python-semver | affected |
| 12 | python-semver | affected |
| 13 | python-semver | affected |
| 14 | python-semver | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| python-semver | affected |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| datadog-agent-7-80 | 7.80.4-r33 |
References
- github.com https://github.com/python-semver/python-semver
- github.com https://github.com/python-semver/python-semver/commit/fbf1e8f21c050256579de9199e53b6807e49014a
- github.com https://github.com/python-semver/python-semver/releases/tag/3.1.3
- github.com https://github.com/python-semver/python-semver/security/advisories/GHSA-3qgw-g8j9-rcg4
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-140095
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.