Bug 983917 (CVE-2013-4116) - CVE-2013-4116 npm: Insecure temporary directory generation
Summary: CVE-2013-4116 npm: Insecure temporary directory generation
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2013-4116
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: 983918 983919 983930
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-12 09:34 UTC by Jan Lieskovsky
Modified: 2020-11-05 10:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-23 16:00:09 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Lieskovsky 2013-07-12 09:34:15 UTC
An insecure temporary directory generation / use flaw was found in the way NPM, Node.js Package Manager, used to generate location of the temporary folder to be used for tarballs expansion. A local attacker could use this flaw to conduct symbolic link attacks, possibly leading to their ability to overwrite arbitrary system file reachable with the privileges of the user performing the NPM archive expansion.

References:
[1] http://www.openwall.com/lists/oss-security/2013/07/10/17
[2] http://www.openwall.com/lists/oss-security/2013/07/10/18
[3] http://www.openwall.com/lists/oss-security/2013/07/11/9

Upstream bug report:
[4] https://github.com/isaacs/npm/issues/3635

Relevant upstream patch:
[5] https://github.com/isaacs/npm/commit/f4d31693

Comment 1 Jan Lieskovsky 2013-07-12 09:37:03 UTC
This issue affects the versions of the npm package, as shipped with Fedora release of 18 and 19. Please schedule an update.

--

This issue affects the versions of the npm package, as shipped with Fedora EPEL-6. Please schedule an update.

Comment 2 Jan Lieskovsky 2013-07-12 09:38:00 UTC
Created npm tracking bugs for this issue:

Affects: fedora-all [bug 983918]
Affects: epel-6 [bug 983919]

Comment 5 T.C. Hollingsworth 2013-08-01 20:43:40 UTC
This is now fixed in Fedora 18, 19, and EPEL 6 stable repositories.

Leaving this open since it still blocks a private bug.

Comment 6 Jan Lieskovsky 2013-08-02 09:01:46 UTC
(In reply to T.C. Hollingsworth from comment #5)
> This is now fixed in Fedora 18, 19, and EPEL 6 stable repositories.
> 
> Leaving this open since it still blocks a private bug.

Thank you, T.C. To leave this open was correct (the other npm package issue case shipped within Red Hat is in progress still). We will close this bug once the flaw has been corrected in all affected package versions.

Regards, Jan.
--
Jan iankko Lieskovsky / Red Hat Security Response Team

Comment 7 Jamie Nguyen 2014-02-23 16:00:09 UTC
Private bug has status "CLOSED ERRATA". Therefore I am closing this bug. Please re-open if required.


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