Advisory

GHSA-ph34-pc88-72gc

Also known as: CVE-2018-7408

Summary

Incorrect Permission Assignment for Critical Resource in NPM

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-13 01:53 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

npm

npm · All systems

Affected

  • introduced 0, fixed 5.7.1 (semver)

Fixed versions

5.7.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences