# CVE-2018-7408

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2018-02-22 · Modified: 2024-08-05
- Aliases: CGA-3wp3-9q98-w78f, CGA-9284-3383-rq97, CGA-rhr4-mhw8-6mpp, CGA-w427-q9q2-xc8v, GHSA-ph34-pc88-72gc, CGA-22qm-hmv8-5ccc, CGA-2334-8g44-3fqj, CGA-2489-mvcj-5ph9, CGA-2733-c54j-vp55, CGA-2fmv-7gc2-xp34, CGA-2gjf-vpvc-j88v, CGA-2r8w-xp3g-4j95, CGA-2vvm-7gr8-qv7g, CGA-2wx8-j7rc-3jvh, CGA-34q5-rrx2-p26r, CGA-3555-pc26-94v7, CGA-35rf-8442-57j5, CGA-368j-2r29-jvhr, CGA-3787-wmhw-pw39, CGA-383f-9fjh-5hxh, CGA-38gc-m6r7-rcxr, CGA-3w7r-9wxx-m5rr, CGA-3xmm-vwcm-g4gf, CGA-44x3-2488-9px3, CGA-4678-wxwj-jr6r, CGA-4694-6jm8-w932, CGA-4f59-856c-gx48, CGA-4f5c-875r-4mfh, CGA-4hxr-mcm8-3xph, CGA-4mgp-9q79-jcgr, CGA-4r4c-hff9-8fgv, CGA-4rh6-xccp-gq4g, CGA-4wcr-8xwh-m2g7, CGA-52hr-9vqg-hwgp, CGA-5343-v9gf-wc6r, CGA-5687-4wh7-m78c, CGA-58h6-r2cq-f7xv, CGA-5m6f-r4rr-6wg6, CGA-5qgq-7m5r-8m3f, CGA-5r7q-g359-q64r, CGA-5xg4-3f83-rq3m, CGA-6262-q787-w5g7, CGA-6269-grxp-m397, CGA-63x4-w2rm-pmq9, CGA-65vw-x6h3-vpcg, CGA-66vp-qww7-5pc3, CGA-68qf-9wxr-67vm, CGA-68vh-c47c-qh4w, CGA-6f2p-8vqh-q5rg, CGA-6fpj-5vxf-2937, CGA-6hh8-7p9g-hrvj, CGA-6jgj-xjj2-q654, CGA-6p48-43gf-v3cw, CGA-6rhj-3vm4-3438, CGA-6ww4-4rgc-87pq, CGA-73h6-m299-44xq, CGA-745f-p9f6-c5cm, CGA-77c9-x47x-j2vm, CGA-7c2f-x7ff-92fq, CGA-7ffc-8mmp-r8v6, CGA-7p44-g8c2-9562, CGA-7pc6-hcj6-jv6p, CGA-7x2c-w5f8-m9q5, CGA-86q4-cxmh-7g6x, CGA-8m6m-52q2-w468, CGA-922f-qvq6-3j9h, CGA-92ww-q2m2-54jw, CGA-9544-wmg8-9cg6, CGA-954x-6hmg-qqcf, CGA-964m-2gf9-8729, CGA-96pp-m6h8-4mv9, CGA-992w-rcj3-fpcx, CGA-9qp8-h8cg-rr67, CGA-9rxf-92g4-j39v, CGA-c5wf-5q28-fxhw, CGA-c62h-m62v-hq5c, CGA-c99w-66x7-8mwj, CGA-cc5h-94xh-7hq7, CGA-cjh7-q7hg-3jx6, CGA-cp36-jh55-h9jv, CGA-f99h-79f3-94jf, CGA-fhx6-7vgf-r3rr, CGA-fm5r-jx43-33h2, CGA-fwc6-3r28-j3vv, CGA-g44w-pr39-mvxv, CGA-g89w-vv36-cw5m, CGA-gvvp-v279-378g, CGA-h5w2-9qq3-pxmp, CGA-h65p-3gg9-w5ww, CGA-h668-v27h-g5qv, CGA-h6r5-4fg9-q53h, CGA-h8vw-7j3h-773v, CGA-hh47-v227-93mh, CGA-hj4p-qcfg-xmg7, CGA-hjg6-r362-hv7w, CGA-hm24-8f92-2x8r, CGA-hvhg-x7jw-rv7m, CGA-hx58-vmxc-p28q, CGA-hxpj-rvfv-96m8, CGA-j4xw-fj25-q57c, CGA-j7ff-4v68-rc73, CGA-j7fw-p6xv-xx2v, CGA-j88r-7pc8-rjxr, CGA-j8xq-pc28-5w62, CGA-jc97-v6j8-54vf, CGA-jcg7-85vr-98rr, CGA-jjp5-269q-qm5j, CGA-jrpr-mrj7-xphp, CGA-jwrw-4vpr-3vjj, CGA-mfgp-hm6p-2mpf, CGA-mwm5-c7gr-mmcq, CGA-p45w-cw2m-8mjc, CGA-p6jq-6ggf-fg8v, CGA-p7rr-r4jg-wwf9, CGA-pfr6-3x9v-6w2f, CGA-pj4q-7w57-p6gf, CGA-pjcq-557g-57h2, CGA-pjvh-mc76-54cj, CGA-pmgp-vpr9-6482, CGA-v7f7-m86j-v8x3, CGA-wp3j-95m6-v9vc, CGA-xfgr-hxxf-m875, CGA-xvv5-3466-3vcp, CGA-q4x5-v36p-w9cr, CGA-q9gj-cxp6-v3r7, CGA-qfcp-5f68-cwvw, CGA-qhv2-pfpf-xqw4, CGA-r2m5-jwvh-f7mg, CGA-r5w6-gv5w-5889, CGA-r643-pxr2-h894, CGA-r8pp-j92c-86cp, CGA-r966-ggm6-fhgq, CGA-rh4v-vgvv-83xw, CGA-rm7c-43pp-4384, CGA-rqhh-8hhc-c3hh, CGA-rrhg-pwxv-f47r, CGA-rwj2-r8jx-cvh3, CGA-v29p-wvhv-4ggc, CGA-v6mj-vh3j-x2ww, CGA-vjxf-fxgx-94fw, CGA-vpfv-8hg8-224j, CGA-vw6g-vphq-c4q8, CGA-w4gg-grmc-88vq, CGA-w5x9-qh55-5j6v, CGA-w73f-rh8q-42qc, CGA-wgxf-vh43-242q, CGA-wvrp-gg4p-465j, CGA-wx8g-xx42-2gpw, CGA-x2jh-8hf8-38w9, CGA-x452-59w8-rfpx, CGA-x589-c794-jxx5, CGA-x7h8-34xp-5w2q, CGA-x827-v7hh-rqjw, CGA-5qv7-252c-fp3x, CGA-jh78-87rq-6hvf, CGA-v5qq-rjqr-8jq5, CGA-4494-cghx-gch8, CGA-h456-2337-q859, CGA-p8g5-wpv2-vvpx, CGA-wjvv-pmqh-8m2w, CGA-6wf4-chvj-hhjm, CGA-fv9m-ggx8-5345, CGA-g9gc-j3qc-9p56, CGA-r8wv-fmj9-7cwj, CGA-rg34-fr8f-9v65, CGA-25vh-c563-4p5p
- Record: https://cvemate.com/vulnerability/CVE-2018-7408 · JSON: https://cvemate.com/vulnerability/CVE-2018-7408/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.0, NVD) CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.32%, percentile 26.974%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 81)

- chainguard code-server (Chainguard): All versions (No fix recorded)
- chainguard code-server-compat (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-assets-19.1 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-assets-19.2 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-assets-19.3 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-assets-19.4 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-assets-19.5 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-assets-fips-19.1 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-assets-fips-19.2 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-assets-fips-19.3 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-assets-fips-19.4 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-assets-fips-19.5 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-assets-fips-19.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/npm/npm/commit/74e149da6efe6ed89477faa81fef08eee7999ad0>
- <https://github.com/npm/npm/issues/19883>
- <http://blog.npmjs.org/post/171169301000/v571>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-7408>

---

Data as of 2026-12-05T06:10:45.729Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
