{"id":"CVE-2013-4116","aliases":["DEBIAN-CVE-2013-4116","EUVD-2020-1290","GHSA-v3jv-wrf4-5845","UBUNTU-CVE-2013-4116"],"status":"published","title":"Local Privilege Escalation in npm","description":"lib/npm.js in Node Packaged Modules (npm) before 1.3.3 allows local users to overwrite arbitrary files via a symlink attack on temporary files with predictable names that are created when unpacking archives.","severity":{"version":"2.0","score":3.3,"vector":"AV:L/AC:M/Au:N/C:N/I:P/A:P","level":"low","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00372,"percentile":0.31405,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-59"],"published":"2014-04-22T14:00:00Z","modified":"2026-09-10T03:49:26Z","fixes":[{"ecosystem":"npm","package":"npm","fixed_in":["1.3.3"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"npm","fixed_in":["1.3.10~dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"npm","fixed_in":["1.3.10~dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"npm","fixed_in":["1.3.10~dfsg-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"npm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.3"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"npm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.10~dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"npm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.10~dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"npm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.10~dfsg-1"}]}]},{"source":"osv","ecosystem":"npm","package":"npm","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.3.3"}]}]}],"products":[{"vendor":"node_packaged_modules_project","product":"node_packaged_modules"}],"references":[{"url":"http://www.securityfocus.com/bid/61083","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=983917","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Third Party Advisory","advisory","report","web"]},{"url":"http://www.openwall.com/lists/oss-security/2013/07/11/9","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","article","web"]},{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715325","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Third Party Advisory","advisory","report","web"]},{"url":"https://github.com/npm/npm/issues/3635","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/npm/npm/commit/f4d31693","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","advisory","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2013/07/10/17","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","article","web"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/87141","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://www.npmjs.com/advisories/152","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2013-4116","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-v3jv-wrf4-5845"},{"url":"https://security-tracker.debian.org/tracker/CVE-2013-4116","tags":["advisory"]},{"url":"https://github.com/npm/npm","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2013-4116","tags":["report"]},{"url":"https://github.com/isaacs/npm/issues/3635","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2013-4116","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2013-4116","description":"lib/npm.js in Node Packaged Modules (npm) before 1.3.3 allows local users to overwrite arbitrary files via a symlink attack on temporary files with predictable names that are created when unpacking archives.","status":"published","published":"2014-04-22T14:00:00Z","modified":"2024-08-06T16:30:49.923Z","updated_at":"2026-11-02T14:34:58.193873Z"}],"euvd":[{"id":"EUVD-2020-1290","description":"lib/npm.js in Node Packaged Modules (npm) before 1.3.3 allows local users to overwrite arbitrary files via a symlink attack on temporary files with predictable names that are created when unpacking archives.","status":"published","published":"2014-04-22T14:00:00Z","modified":"2024-08-06T16:30:49Z","updated_at":"2026-11-03T01:56:33.227006Z"}],"ghsa":[{"id":"GHSA-v3jv-wrf4-5845","title":"Local Privilege Escalation in npm","description":"Affected versions of `npm` use predictable temporary file names during archive unpacking. If an attacker can create a symbolic link at the location of one of these temporary file names, the attacker can arbitrarily write to any file that the user which owns the `npm` process has permission to write to, potentially resulting in local privilege escalation.\n\n\n\n## Recommendation\n\nUpdate to version 1.3.3 or later.","status":"published","published":"2020-09-01T16:03:34Z","modified":"2023-01-09T05:03:49Z","cwes":["CWE-59"],"updated_at":"2026-11-02T14:36:06.884904Z"}],"nvd":[{"id":"CVE-2013-4116","description":"lib/npm.js in Node Packaged Modules (npm) before 1.3.3 allows local users to overwrite arbitrary files via a symlink attack on temporary files with predictable names that are created when unpacking archives.","status":"published","published":"2014-04-22T14:23:34.33Z","modified":"2026-06-16T23:56:39.34Z","cvss":[{"version":"2.0","score":3.3,"vector":"AV:L/AC:M/Au:N/C:N/I:P/A:P","level":"low","assessor":"primary"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T14:02:50.049023Z"}],"osv":[{"id":"CVE-2013-4116","description":"lib/npm.js in Node Packaged Modules (npm) before 1.3.3 allows local users to overwrite arbitrary files via a symlink attack on temporary files with predictable names that are created when unpacking archives.","status":"published","published":"2014-04-22T14:23:34Z","modified":"2026-04-10T03:42:54.453534Z","updated_at":"2026-11-02T15:43:59.09154Z"},{"id":"DEBIAN-CVE-2013-4116","description":"lib/npm.js in Node Packaged Modules (npm) before 1.3.3 allows local users to overwrite arbitrary files via a symlink attack on temporary files with predictable names that are created when unpacking archives.","status":"published","published":"2014-04-22T14:23:34.33Z","modified":"2026-09-01T20:03:16.375025523Z","updated_at":"2026-11-02T15:45:25.514579Z"},{"id":"GHSA-v3jv-wrf4-5845","title":"Local Privilege Escalation in npm","description":"Affected versions of `npm` use predictable temporary file names during archive unpacking. If an attacker can create a symbolic link at the location of one of these temporary file names, the attacker can arbitrarily write to any file that the user which owns the `npm` process has permission to write to, potentially resulting in local privilege escalation.\n\n\n\n## Recommendation\n\nUpdate to version 1.3.3 or later.","status":"published","published":"2020-09-01T16:03:34Z","modified":"2026-09-10T03:49:26.221107922Z","cwes":["CWE-59"],"updated_at":"2026-11-02T15:46:56.639206Z"},{"id":"UBUNTU-CVE-2013-4116","description":"lib/npm.js in Node Packaged Modules (npm) before 1.3.3 allows local users to overwrite arbitrary files via a symlink attack on temporary files with predictable names that are created when unpacking archives.","status":"withdrawn","published":"2014-04-22T14:23:00Z","modified":"2025-07-16T07:31:19.190529Z","updated_at":"2026-11-02T15:54:07.421078Z"}]}}
