Bug 2006009 (CVE-2021-3795)

Summary: CVE-2021-3795 semver-regex: inefficient regular expression complexity
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: fcanogab, gghezzo, gparvin, jramanat, jwong, kaycoth, ldap-maint, michal.skrivanek, mperina, pahickey, psegedy, sbonazzo, sgratch, stcannon
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the semver-regex library where it could lead to consuming a big amount of resources when executing specific strings. Attackers could take advantage of this by crafting an invalid version causing a disruption or a denial of service (DoS).
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-09 01:04:33 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: 1999601, 2011980, 2011981, 2020102, 2020305    
Bug Blocks: 2006010    

Description Guilherme de Almeida Suckevicz 2021-09-20 16:50:13 UTC
semver-regex is vulnerable to Inefficient Regular Expression Complexity.

Reference:
https://huntr.dev/bounties/006624e3-35ac-448f-aab9-7b5183f30e28

Upstream patch:
https://github.com/sindresorhus/semver-regex/commit/11c66245f4e1976dccc52977ed183696a21a3fd7

Comment 4 errata-xmlrpc 2021-12-09 00:47:16 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Management for Kubernetes 2.2 for RHEL 8
  Red Hat Advanced Cluster Management for Kubernetes 2.2 for RHEL 7

Via RHSA-2021:5038 https://access.redhat.com/errata/RHSA-2021:5038

Comment 5 Product Security DevOps Team 2021-12-09 01:04:31 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-3795