Privilege escalation in Npm Cli
CVE-2019-16777
Versions of the npm CLI prior to 6.13.4 are vulnerable to an Arbitrary File Overwrite. It fails to prevent existing globally-installed binaries to be overwritten by other package installations. For example, if a package was installed globally and created a serve binary, any subsequent installs of packages that also create a serve binary would overwrite the previous serve binary. This behavior is still allowed in local installations and also through install scripts. This vulnerability bypasses a user using the --ignore-scripts install option.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.7 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N.
EPSS exploit prediction
EPSS: 0.021 (81.9th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 82nd percentile — 81.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.021 · newest: 0.021 · change: 0.000
Affected products
- Npm Cli — versions < 6.13.4
- Npmjs Npm
- Oracle Graalvm — versions 19.3.0.2
- Fedoraproject Fedora — versions 31
- openSUSE Leap — versions 15.1
- Red Hat Enterprise Linux — versions 8.0
- Red Hat Enterprise Linux Eus — versions 8.1
Weakness classification (CWE)
References
- blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli (Third Party Advisory)
- github.com/npm/cli/security/advisories/GHSA-4328-8hgf-7wjr (Third Party Advisory)
- www.oracle.com/security-alerts/cpujan2020.html (Third Party Advisory)
- lists.opensuse.org/opensuse-security-announce/2020-01/msg00027.html (vendor-advisory, Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- access.redhat.com/errata/RHEA-2020:0330 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2020:0573 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2020:0579 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2020:0597 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2020:0602 (vendor-advisory, Third Party Advisory)
Frequently asked questions
- What is CVE-2019-16777?
- CVE-2019-16777 is a high-severity vulnerability in Npm Cli, classified under Path Traversal. CVSS score: 7.7/10. Published 2019-12-13.
- How severe is CVE-2019-16777?
- High severity. CVSS v3 base score is 7.7 out of 10.