Bug 2216475 (CVE-2022-25883)

Summary: CVE-2022-25883 nodejs-semver: Regular expression denial of service
Product: [Other] Security Response Reporter: ybuenos
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aazores, adudiak, adupliak, aileenc, alampare, alazarot, amctagga, aoconnor, asoldano, aveerama, bbaranow, bbuckingham, bcourt, bdettelb, bmaxwell, bniver, boliveir, brian.stansberry, cdewolf, chazlett, cluster-maint, darran.lofthouse, davidn, dcadzow, desktop-qa-list, dfreiber, dhanak, dkenigsb, dkreling, dosoudil, drichtar, dsimansk, dymurray, eaguilar, ebaron, ehelms, elima, ellin, emingora, epacific, eric.wittmann, fdeutsch, fjuma, flucifre, fzatlouk, gjospin, gmalinko, gmeno, gparvin, hbraun, hhorak, ibek, ibolton, idevat, idm-ds-dev-bugs, ivassile, iweiss, janstey, jburrell, jcammara, jcantril, jhardy, jkang, jkoehler, jkozol, jkurik, jmatthew, jmontleo, jneedle, jobarker, jorton, jpallich, jrokos, jscotka, jshaughn, jsherril, jwendell, jweng, kshier, kverlaen, lbacciot, lball, lgao, lzap, mabashia, matzew, mbenjamin, mhackett, mhulan, michal.skrivanek, mlisik, mnovotny, mosmerov, mperina, mpitt, mpospisi, msochure, mstefank, msvehla, mwringe, myarboro, nathans, nbecker, nboldt, njean, nmoumoul, nodejs-maint, nwallace, ocs-bugs, omular, orabin, oramraz, osapryki, owatkins, pahickey, pantinor, pcpbot, pcreech, pdelbell, pdrozd, peholase, periklis, pjindal, pmackay, pskopek, rcernich, rchan, release-test-team, rgarg, rguimara, rhuss, rjohnson, rogbas, rowaters, rstancel, saroy, sbonazzo, scorneli, scox, sfroberg, sgott, sgratch, shbose, simaishi, skontopo, slucidi, smaestri, smcdonal, smullick, sostapov, sseago, stcannon, sthorger, teagle, tfister, thrcka, tojeline, tom.jenkinson, trathi, twalsh, ubhargav, vereddy, vkumar, yguenane, zsadeh, zsvetlik
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: node-semver 7.5.2, node-semver 6.3.1, node-semver 5.7.2 Doc Type: If docs needed, set a value
Doc Text:
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in node-semver package via the 'new Range' function. This issue could allow an attacker to pass untrusted malicious regex user data as a range, causing the service to excessively consume CPU depending upon the input size, resulting in a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-02 18:10:14 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: 2217402, 2222507, 2222508, 2222509, 2222510, 2222512, 2222513, 2222514, 2222515, 2222517, 2222518, 2222519, 2222520, 2222521, 2222522, 2222525, 2222527, 2222528, 2222529, 2222530, 2222531, 2222532, 2222533, 2222534, 2222535, 2222536, 2222537, 2222538, 2222539, 2222540, 2222544, 2222545, 2222546, 2222547, 2222548, 2222549, 2222550, 2222562, 2222511, 2222516, 2222523, 2222524, 2222541, 2222542, 2222551, 2222552, 2222553, 2222561, 2222563, 2222564, 2222565, 2222566, 2222567, 2222568, 2222569    
Bug Blocks: 2216477    

Description ybuenos 2023-06-21 14:38:29 UTC
Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.

https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795
https://github.com/npm/node-semver/pull/564
https://github.com/advisories/GHSA-c2qf-rxjj-qqgw

Comment 1 Sandipan Roy 2023-06-26 07:55:46 UTC
Created nodejs-semver tracking bugs for this issue:

Affects: epel-7 [bug 2217402]

Comment 2 Product Security DevOps Team 2023-06-26 12:04:53 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.

Comment 4 TEJ RATHI 2023-07-13 04:39:56 UTC
Created breeze-icon-theme tracking bugs for this issue:

Affects: epel-all [bug 2222507]
Affects: fedora-all [bug 2222513]


Created cachelib tracking bugs for this issue:

Affects: fedora-all [bug 2222514]


Created fbthrift tracking bugs for this issue:

Affects: fedora-all [bug 2222515]


Created golang-github-prometheus tracking bugs for this issue:

Affects: epel-all [bug 2222508]


Created llhttp tracking bugs for this issue:

Affects: fedora-all [bug 2222516]


Created mozjs78 tracking bugs for this issue:

Affects: fedora-all [bug 2222517]


Created nodejs tracking bugs for this issue:

Affects: fedora-all [bug 2222518]


Created nodejs-bash-language-server tracking bugs for this issue:

Affects: fedora-all [bug 2222519]


Created nodejs:13/nodejs tracking bugs for this issue:

Affects: epel-all [bug 2222509]


Created nodejs:16-epel/nodejs tracking bugs for this issue:

Affects: epel-all [bug 2222510]


Created nodejs:16/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 2222520]


Created nodejs:18/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 2222521]


Created pgadmin4 tracking bugs for this issue:

Affects: fedora-all [bug 2222522]


Created rstudio tracking bugs for this issue:

Affects: fedora-all [bug 2222523]


Created seamonkey tracking bugs for this issue:

Affects: epel-all [bug 2222511]
Affects: fedora-all [bug 2222524]


Created yarnpkg tracking bugs for this issue:

Affects: epel-all [bug 2222512]
Affects: fedora-all [bug 2222525]

Comment 16 errata-xmlrpc 2023-08-02 13:49:42 UTC
This issue has been addressed in the following products:

  RHOL-5.7-RHEL-8

Via RHSA-2023:4341 https://access.redhat.com/errata/RHSA-2023:4341

Comment 17 Product Security DevOps Team 2023-08-02 18:10:04 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-2022-25883