{"id":"CVE-2018-7408","url":"https://www.cyber-defence.io/tools/cve/CVE-2018-7408","generatedAt":"2026-10-28T21:19:02.442Z","title":"It might allow local users to bypass intended filesystem access restrictions because ownerships of /etc and /usr directories are being changed unexpectedly, related to a \"correctMkdir\" issue.","description":"An issue was discovered in an npm 5.7.0 2018-02-21 pre-release (marked as \"next: 5.7.0\" and therefore automatically installed by an \"npm upgrade -g npm\" command, and also announced in the vendor's blog without mention of pre-release status). It might allow local users to bypass intended filesystem access restrictions because ownerships of /etc and /usr directories are being changed unexpectedly, related to a \"correctMkdir\" issue.","published":"2018-02-22T18:29:00.000Z","lastModified":"2026-06-17T02:03:05.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.0","score":7.8,"severity":"HIGH","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-732"],"affected":["npmjs/npm"],"epss":{"score":0.0032,"percentile":0.24879,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (0.32%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"http://blog.npmjs.org/post/171169301000/v571","tags":["Vendor Advisory"],"source":"cve@mitre.org"},{"url":"https://github.com/npm/npm/commit/74e149da6efe6ed89477faa81fef08eee7999ad0","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://github.com/npm/npm/issues/19883","tags":["Issue Tracking","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://blog.npmjs.org/post/171169301000/v571","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/npm/npm/commit/74e149da6efe6ed89477faa81fef08eee7999ad0","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/npm/npm/issues/19883","tags":["Issue Tracking","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-7408","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}