HIGH 7.8

CVE-2018-7408

Incorrect Permission Assignment for Critical Resource in NPM

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.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.webjars » npmvia npm npm
< 5.7.1
5.7.1
org.webjars.npm » npmvia npm npm
< 5.7.1
5.7.1

Blast radius

2affected artifacts
34affected versions
44dependent artifacts (est.)
279dependent versions

93% of the dependent artifacts (41) still pull an affected version in their latest release.

DepthDependent versions
Direct
40
2 hops
109
3 hops
130

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects npm (1 package) . See all on OSV

References

Advisorynvd.nist.gov
Webgithub.com
Webgithub.com
Webblog.npmjs.org