CVE-2018-7408
HIGH 7.8CVSS 3.0Incorrect Permission Assignment for Critical Resource in 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.
- Published
- 22 Feb 2018
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-732
- Also known as
- GHSA-ph34-pc88-72gc
- Sources
- NVDJSONOSV GHSA-ph34-pc88-72gcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | npmjs | npmcpe:2.3:a:npmjs:npm:5.7.0:*:*:*:*:*:*:* |
= 5.7.0 | |
| OSV | npm | npm | < 5.7.1 | 5.7.1 |
References
- http://blog.npmjs.org/post/171169301000/v571 · Vendor Advisory, WEB
- https://github.com/npm/npm/commit/74e149da6efe6ed89477faa81fef08eee7999ad0 · Third Party Advisory, WEB
- https://github.com/npm/npm/issues/19883 · Issue Tracking, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-7408 · ADVISORY
- github.com/npm/cli · PACKAGE
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 22 Feb 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 May 2022)