CVE-2023-30585
Vulnérabilité non évaluée dans Node (NodeJS)
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.
Gravité et risque d'exploitation
CVE-2023-30585 obtient un score CVSS de 0.0/10, soit une gravité non évaluée. Selon le modèle EPSS, la probabilité qu'elle soit exploitée dans les 30 prochains jours est de 1.47 %, ce qui la place devant 73.3 % des CVE référencées.
Que faire ?
- Vérifiez si Node (versions <20.3.1, 18.0, <14.*, 15.0, 9.0, <9.*, 7.0, 13.0, <4.*, 14.0, 4.0, 6.0, 11.0, 5.0, 20.0, <10.*, <6.*, <13.*, <19.*, 17.0, <17.*, <8.*, 8.0, 12.0, <16.20.1, <18.16.1, 19.0, <5.*, <11.*, <15.*, <7.*, 10.0, 16.0, <12.*) est présent sur votre parc.
- Appliquez le correctif ou la version corrigée indiqués dans les références de l'éditeur.
- À défaut de correctif, limitez l'exposition (filtrage réseau, désactivation du composant).
- Automatisez la détection : les agents CVE Heimdall (gratuits, open source) corrèlent l'inventaire de vos serveurs avec la base CVE.
