Vulnerability record · CVE-2018-7408 · published 22 February 2018
CVE-2018-7408: Npmjs npm incorrect permission assignment vulnerability
Npmjs · Npm
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.
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.
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://blog.npmjs.org/post/171169301000/v571 | Vendor Advisory |
| https://github.com/npm/npm/commit/74e149da6efe6ed89477faa81fef08eee7999ad0 | Third Party Advisory |
| https://github.com/npm/npm/issues/19883 | Issue TrackingThird Party Advisory |
| http://blog.npmjs.org/post/171169301000/v571 | Vendor Advisory |
| https://github.com/npm/npm/commit/74e149da6efe6ed89477faa81fef08eee7999ad0 | Third Party Advisory |
| https://github.com/npm/npm/issues/19883 | Issue TrackingThird Party Advisory |
Track CVE-2018-7408 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2018-7408), CISA KEV, FIRST EPSS (scores of 2026-10-05). This page is refreshed as NVD updates the record.