- Accueil
- Vulnérabilités
- CVE-2026-140095
CVE-2026-140095
python-semver: super-quadratic ReDoS in _LAST_NUMBER via attacker-controlled version strings
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
python-semver (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| python-semver | Versions non précisées | — | CNA (éditeur ou attributeur) |
Pypi (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| semver | avant 3.1.3 (exclu) |
3.1.3 |
GitHub Advisory |
Correctif
Mise à jour — PyPI/semver 3.1.3source officielle
Source : GitHub Advisory
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Exploit signalé par les sources
Ces liens sont étiquetés « exploit » par le NVD ou par CVE.org. Nous ne les avons pas vérifiés ni copiés ; ouvrez-les avec prudence.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- GHSA-3qgw-g8j9-rcg4 — python-semver: Super-quadratic ReDoS in _LAST_NUMBER via attacker-controlled version strings 1 déc. 2026
Références
- https://github.com/python-semver/python-semver/security/advisories/GHSA-3qgw-g8j9-rcg4exploit
- https://github.com/python-semver/python-semver/commit/fbf1e8f21c050256579de9199e53b6807e49014ax_refsource_MISC
- https://github.com/python-semver/python-semver/releases/tag/3.1.3x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-140095ADVISORY
- https://github.com/python-semver/python-semverPACKAGE
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
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:(CVSS 4.0, CNA:security-advisories@github.com)- Faiblesse
- CWE-1333 · Autre (CWE-1333)