Bug 1788301 (CVE-2019-16777) - CVE-2019-16777 npm: Global node_modules Binary Overwrite
Summary: CVE-2019-16777 npm: Global node_modules Binary Overwrite
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-16777
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1788303 1788302 1803078 1803079 1803152 1803153 1803154 1803682 1803683 1805294 1847735
Blocks: 1788313
TreeView+ depends on / blocked
 
Reported: 2020-01-06 22:07 UTC by Pedro Sampaio
Modified: 2020-12-15 15:57 UTC (History)
24 users (show)

Fixed In Version: npm 6.13.4, nodejs 8.17.0, nodejs 10.18.0, nodejs 12.14.0, nodejs 13.4.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-24 15:49:33 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:0611 0 None None None 2020-02-26 11:52:29 UTC
Red Hat Product Errata RHBA-2020:0612 0 None None None 2020-02-26 12:02:04 UTC
Red Hat Product Errata RHBA-2020:0618 0 None None None 2020-02-26 15:00:40 UTC
Red Hat Product Errata RHBA-2020:0626 0 None None None 2020-02-27 08:31:09 UTC
Red Hat Product Errata RHBA-2020:0636 0 None None None 2020-02-27 15:53:22 UTC
Red Hat Product Errata RHBA-2020:0646 0 None None None 2020-03-02 08:04:13 UTC
Red Hat Product Errata RHBA-2020:0647 0 None None None 2020-03-02 08:01:50 UTC
Red Hat Product Errata RHBA-2020:0648 0 None None None 2020-03-02 08:08:14 UTC
Red Hat Product Errata RHBA-2020:0650 0 None None None 2020-03-02 10:20:36 UTC
Red Hat Product Errata RHSA-2020:0573 0 None None None 2020-02-24 12:53:33 UTC
Red Hat Product Errata RHSA-2020:0579 0 None None None 2020-02-25 08:36:25 UTC
Red Hat Product Errata RHSA-2020:0597 0 None None None 2020-02-25 13:04:34 UTC
Red Hat Product Errata RHSA-2020:0602 0 None None None 2020-02-25 15:53:12 UTC
Red Hat Product Errata RHSA-2020:2625 0 None None None 2020-06-19 03:44:22 UTC

Description Pedro Sampaio 2020-01-06 22:07:49 UTC
Versions of the npm CLI prior to 6.13.4 are vulnerable to a Global node_modules Binary Overwrite. It fails to prevent existing globally-installed binaries to be overwritten by other package installations.

References:

https://www.npmjs.com/advisories/1437
https://nodejs.org/en/blog/vulnerability/december-2019-security-releases/
https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli

Comment 1 Pedro Sampaio 2020-01-06 22:08:37 UTC
Created nodejs tracking bugs for this issue:

Affects: epel-all [bug 1788303]
Affects: fedora-all [bug 1788302]

Comment 2 Jason Shepherd 2020-01-08 03:32:49 UTC
Red Hat Quay versions up to v3.2.0 are affected by the use of yarn to install client side dependencies. Red Hat Quay uses the npm package from RHEL 7 so that will be updated once a fix for RHEL 7 is available.

Comment 3 Jason Shepherd 2020-01-09 00:03:56 UTC
The issue in Yarn was assigned CVE-2019-10773, Red Hat Quay is affected by that issue, not this one.

Comment 4 Ted Jongseok Won 2020-01-17 01:02:37 UTC
This vulnerability is out of security support scope for the following products:
 * Red Hat Openshift Application Runtimes Node.js 8

Please refer to https://access.redhat.com/support/policy/updates/jboss_notes for more details.

Comment 10 Cedric Buissart 2020-02-21 11:43:05 UTC
This vulnerability was fixed in RHEL-8.1.0.z via the following erratum : https://access.redhat.com/errata/RHEA-2020:0330

Comment 11 errata-xmlrpc 2020-02-24 12:53:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.0 Update Services for SAP Solutions

Via RHSA-2020:0573 https://access.redhat.com/errata/RHSA-2020:0573

Comment 12 Product Security DevOps Team 2020-02-24 15:49:33 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-16777

Comment 13 errata-xmlrpc 2020-02-25 08:36:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:0579 https://access.redhat.com/errata/RHSA-2020:0579

Comment 14 errata-xmlrpc 2020-02-25 13:04:32 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS

Via RHSA-2020:0597 https://access.redhat.com/errata/RHSA-2020:0597

Comment 15 errata-xmlrpc 2020-02-25 15:53:10 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS

Via RHSA-2020:0602 https://access.redhat.com/errata/RHSA-2020:0602

Comment 21 errata-xmlrpc 2020-06-19 03:44:20 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS

Via RHSA-2020:2625 https://access.redhat.com/errata/RHSA-2020:2625


Note You need to log in before you can comment on or make changes to this bug.