Bug 2142469 (CVE-2022-37598)

Summary: CVE-2022-37598 uglify-js: Prototype pollution vulnerability in function DEFNODE in ast.js
Product: [Other] Security Response Reporter: Sandipan Roy <saroy>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: agerstmayr, aileenc, alazarot, aoconnor, balejosg, bcoca, bdettelb, bniver, chazlett, cluster-maint, davidn, emingora, epacific, eric.wittmann, etirelli, flucifre, fmuellner, fzatlouk, gjospin, gmalinko, gmeno, gparvin, grafana-maint, gzaronik, ibek, idevat, idm-ds-dev-bugs, janstey, jburrell, jcammara, jhardy, jhorak, jkurik, jneedle, jobarker, jrokos, jshaughn, jwendell, jwon, klember, kverlaen, mabashia, mbenjamin, mhackett, mlisik, mnovotny, mpitt, mpospisi, mwringe, nathans, nboldt, njean, nodejs-maint, omular, osapryki, owatkins, pahickey, pantinor, pdelbell, peholase, pjindal, rcernich, rguimara, scorneli, simaishi, smcdonal, sostapov, stcannon, stransky, teagle, tojeline, tpopela, twalsh, vereddy, vkumar, yguenane, zsadeh
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 prototype pollution vulnerability was found in UglifyJS, stemming from the DEFNODE function in ast.js via the name variable. Exploiting this flaw involves adding or altering properties of the Object.prototype through a "__proto__" or constructor payload, enabling an attacker to execute arbitrary code or causing a denial of service on the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2142584, 2144994, 2144995, 2144996    
Bug Blocks: 2136498    

Description Sandipan Roy 2022-11-14 06:10:00 UTC
Prototype pollution vulnerability in function DEFNODE in ast.js in mishoo UglifyJS 3.13.2 via the name variable in ast.js.

https://github.com/mishoo/UglifyJS/issues/5699
https://github.com/mishoo/UglifyJS/blob/352a944868b09c9ce3121a49d4a0bf0afe370a35/lib/ast.js#L46
https://github.com/mishoo/UglifyJS/blob/352a944868b09c9ce3121a49d4a0bf0afe370a35/lib/ast.js#L79