Bug 1209496 (CVE-2015-8855)

Summary: CVE-2015-8855 nodejs-semver: npm Regular Expression Denial of Service during package versions parsing
Product: [Other] Security Response Reporter: Vasyl Kaigorodov <vkaigoro>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jorton, jrusnack, mmaslano, tchollingsworth, thrcka
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: npm 2.7.5, semver 4.3.2 Doc Type: Bug Fix
Doc Text:
A denial of service flaw was found in the way semver, the semantic version comparison library for Node.js, parsed certain package versions. A remote attacker could use a specially crafted version string that, when processed, would lead to excessive CPU consumption.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-30 08:58:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1209498, 1209499    
Bug Blocks: 1209497    

Description Vasyl Kaigorodov 2015-04-07 13:39:24 UTC
semver is vulnerable to regular expression denial of service (ReDoS) when extremely long version strings are parsed:

https://nodesecurity.io/advisories/semver_redos

Upstream fix:
https://github.com/npm/npm/commit/0dc68757cffd5397c280bc71365d106523a5a052

Comment 1 Vasyl Kaigorodov 2015-04-07 13:41:53 UTC
Created nodejs-semver tracking bugs for this issue:

Affects: fedora-all [bug 1209498]
Affects: epel-all [bug 1209499]

Comment 3 Ján Rusnačko 2015-04-08 08:27:06 UTC
External References:

https://nodesecurity.io/advisories/semver_redos

Comment 5 Andrej Nemec 2016-04-22 08:00:13 UTC
CVE assignment:

http://seclists.org/oss-sec/2016/q2/122