Bug 1611613 (CVE-2017-18869)

Summary: CVE-2017-18869 nodejs-chownr: TOCTOU vulnerability in `chownr` function in chownr.js
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: cbyrne, cmacedo, dffrench, drusso, hhorak, jmadigan, jorton, jshepherd, lgriffin, ngough, nodejs-sig, pwright, tchollingsworth, thrcka, trepel, zsvetlik
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nodejs-chownr 1.1.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-19 05:20:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1612067, 1612068    
Bug Blocks: 1611614    

Description Pedro Sampaio 2018-08-02 13:15:26 UTC
Affected versions of chownr are vulnerable to Time of Check Time of Use (TOCTOU). It does not dereference symbolic links and changes the owner of the link.

Upstream bug:

https://github.com/isaacs/chownr/issues/14

Upstream patch:

https://github.com/simevo/chownr/commit/0307bb7520c856f3e586815959141103ed7590c4

References:

https://snyk.io/vuln/npm:chownr:20180731
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863985#10

Comment 2 errata-xmlrpc 2020-06-19 03:44:16 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

Comment 3 Product Security DevOps Team 2020-06-19 05:20:29 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-2017-18869