7.7
CWE
269 22
Advisory Published
Updated

CVE-2019-16777: Arbitrary File Overwrite in npm CLI

First published: Fri Dec 13 2019(Updated: )

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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Npmjs Npm<6.13.4
openSUSE Leap=15.1
Oracle GraalVM=19.3.0.2
Fedoraproject Fedora=31
Redhat Enterprise Linux=8.0
Redhat Enterprise Linux Eus=8.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2019-16777?

    CVE-2019-16777 is a vulnerability in versions of the npm CLI prior to 6.13.4 that allows for arbitrary file overwrite.

  • How severe is CVE-2019-16777?

    CVE-2019-16777 is classified as high severity with a CVSS score of 6.5.

  • Which software versions are affected by CVE-2019-16777?

    Versions prior to 6.13.4 of the npm CLI, 8.17.0, 10.18.0, 12.14.0, and 13.4.0 of Node.js, Npmjs Npm, openSUSE Leap, Oracle GraalVM, Fedora, and Redhat Enterprise Linux are affected.

  • How do I fix CVE-2019-16777?

    To fix CVE-2019-16777, update to version 6.13.4 of the npm CLI or later.

  • Where can I find more information about CVE-2019-16777?

    You can find more information about CVE-2019-16777 on the npm advisory page (https://www.npmjs.com/advisories/1437), the Node.js blog (https://nodejs.org/en/blog/vulnerability/december-2019-security-releases/), and the npm blog (https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203