GitHub Advisoryadvisory · npm

GHSA-v3jv-wrf4-5845 Local Privilege Escalation in npm

LOW Published 2020-09-01 Modified 2021-09-23 Official page ↗
Aliases
CVE-2013-4116
Ecosystem
npm
Packages
npm
Severity
Low
Weaknesses
CWE-59
Reviewed
2020-08-31

Affected packages

• npm npm: < 1.3.3 → fixed in 1.3.3

Description

Affected versions of `npm` use predictable temporary file names during archive unpacking. If an attacker can create a symbolic link at the location of one of these temporary file names, the attacker can arbitrarily write to any file that the user which owns the `npm` process has permission to write to, potentially resulting in local privilege escalation. Recommendation Update to version 1.3.3 or later.

Related

Alias · CVE (1)

  • CVE-2013-4116 lib/npm.js in Node Packaged Modules (npm) before 1.3.3 allows local users to overwrite arbitrary files via a symlink attack on temporary… vulnerability

Weakness · CWE (1)

  • CWE-59 Improper Link Resolution Before File Access weakness

References