CVE-2019-16777

MEDIUMCVSS 6.5/10EPSS 1.98%

Last modified

CVE-2019-16777 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 1.98% chance of exploitation in the next 30 days.

Description

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.

Metrics

CVSS 3.1
6.5/10

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

EPSS Probability
1.98%

78.0th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
NpmjsNpm< 6.13.4
OpensuseLeap15.1
OracleGraalvm19.3.0.2
FedoraprojectFedora31
RedhatEnterprise Linux8.0
RedhatEnterprise Linux Eus8.1

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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.
How severe is CVE-2019-16777?
CVE-2019-16777 has a CVSS score of 6.5/10 (MEDIUM severity). The EPSS model estimates a 1.98% probability of exploitation in the next 30 days.
How do I fix CVE-2019-16777?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2019-16777?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST