{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-140095","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","state":"PUBLISHED","assignerShortName":"GitHub_M","dateReserved":"2026-11-30T20:55:13.434Z","datePublished":"2026-11-30T22:15:01.996Z","dateUpdated":"2026-11-30T22:15:01.996Z"},"containers":{"cna":{"title":"python-semver: super-quadratic ReDoS in _LAST_NUMBER via attacker-controlled version strings","problemTypes":[{"descriptions":[{"cweId":"CWE-1333","lang":"en","description":"CWE-1333: Inefficient Regular Expression Complexity","type":"CWE"}]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.7,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"references":[{"name":"https://github.com/python-semver/python-semver/security/advisories/GHSA-3qgw-g8j9-rcg4","tags":["x_refsource_CONFIRM"],"url":"https://github.com/python-semver/python-semver/security/advisories/GHSA-3qgw-g8j9-rcg4"},{"name":"https://github.com/python-semver/python-semver/commit/fbf1e8f21c050256579de9199e53b6807e49014a","tags":["x_refsource_MISC"],"url":"https://github.com/python-semver/python-semver/commit/fbf1e8f21c050256579de9199e53b6807e49014a"},{"name":"https://github.com/python-semver/python-semver/releases/tag/3.1.3","tags":["x_refsource_MISC"],"url":"https://github.com/python-semver/python-semver/releases/tag/3.1.3"}],"affected":[{"vendor":"python-semver","product":"python-semver","versions":[{"version":"< 3.1.3","status":"affected"}]}],"providerMetadata":{"orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M","dateUpdated":"2026-11-30T22:15:01.996Z"},"descriptions":[{"lang":"en","value":"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":{"advisory":"GHSA-3qgw-g8j9-rcg4","discovery":"UNKNOWN"}}}}