CVE-2023-30585
Last modified
CVE-2023-30585 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. A vulnerability has been identified in the Node.js (.msi version) installation process, specifically affecting Windows users who install Node.js using the .msi installer. This vulnerability emerges during the repair operation, where the "msiexec.exe" process, running under the NT AUTHORITY\SYSTEM context, attempts to read the %USERPROFILE% environment variable from the current user's registry. The issue arises when the path referenced by the %USERPROFILE% environment variable does not exist. EPSS estimates a 1.47% chance of exploitation in the next 30 days.
Description
A vulnerability has been identified in the Node.js (.msi version) installation process, specifically affecting Windows users who install Node.js using the .msi installer. This vulnerability emerges during the repair operation, where the "msiexec.exe" process, running under the NT AUTHORITY\SYSTEM context, attempts to read the %USERPROFILE% environment variable from the current user's registry. The issue arises when the path referenced by the %USERPROFILE% environment variable does not exist. In such cases, the "msiexec.exe" process attempts to create the specified path in an unsafe manner, potentially leading to the creation of arbitrary folders in arbitrary locations. The severity of this vulnerability is heightened by the fact that the %USERPROFILE% environment variable in the Windows registry can be modified by standard (or "non-privileged") users. Consequently, unprivileged actors, including malicious entities or trojans, can manipulate the environment variable key to deceive the privileged "msiexec.exe" process. This manipulation can result in the creation of folders in unintended and potentially malicious locations. It is important to note that this vulnerability is specific to Windows users who install Node.js using the .msi installer. Users who opt for other installation methods are not affected by this particular issue.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Nodejs | Node.Js | >= 16.0.0, < 16.20.1 |
| Nodejs | Node.Js | >= 18.0.0, < 18.16.1 |
| Nodejs | Node.Js | >= 20.0.0, < 20.3.1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-30585?
How severe is CVE-2023-30585?
How do I fix CVE-2023-30585?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-30577AMANDA (Advanced Maryland Automatic Network Disk Archiver) b…7.8
- CVE-2023-3058A vulnerability was found in 07FLY CRM up to 1.2.0. It has b…5.4
- CVE-2023-30581The use of __proto__ in process.mainModule.__proto__.require…7.5
- CVE-2023-30582A vulnerability has been identified in Node.js version 20, a…5.3
- CVE-2023-30583fs.openAsBlob() can bypass the experimental permission model…7.5
- CVE-2023-30584A vulnerability has been discovered in Node.js version 20, s…7.7
- CVE-2023-30586A privilege escalation vulnerability exists in Node.js 20 th…7.5
- CVE-2023-30587A vulnerability in Node.js version 20 allows for bypassing r…7.5
- CVE-2023-30588When an invalid public key is used to create an x509 certifi…5.3
- CVE-2023-30589The llhttp parser in the http module in Node v20.2.0 does no…7.5
- CVE-2023-3059A vulnerability, which was classified as critical, was found…9.8
- CVE-2023-30590The generateKeys() API function returned from crypto.createD…7.5
Are you affected by CVE-2023-30585?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
