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)
| Artifact | Affected versions | Fixed 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
93% of the dependent artifacts (41) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 40 |
| 2 hops | 109 |
| 3 hops | 130 |
Most used dependents
- org.webjars.npm » jquery556 usages
- com.github.sbt » sbt-js-engine_2.12_1.013 usages
- com.github.sbt » sbt-js-engine_sbt28 usages
- com.typesafe.play » sbt-plugin_2.12_1.07 usages
- org.playframework » sbt-plugin_2.12_1.06 usages
- org.playframework » sbt-plugin_sbt23 usages
- com.github.sbt » sbt-js-engine3 usages
- org.webjars.npm » ember-cli1 usages
- org.playframework » play-docs-sbt-plugin_2.12_1.00 usages
- org.playframework » sbt-scripted-tools_2.12_1.00 usages
- com.typesafe.play » play-docs-sbt-plugin_2.12_1.00 usages
- com.typesafe.play » sbt-scripted-tools_2.12_1.00 usages
- org.playframework » sbt-play-ebean_2.12_1.00 usages
- com.typesafe.play » sbt-play-ebean_2.12_1.00 usages
- com.typesafe » npm0 usages
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
| Advisory | NVD CVE-2018-7408 | nvd.nist.gov |
| Web | npm/npm issue #19883 | github.com |
| Web | npm/npm commit 74e149d | github.com |
| Web | post/171169301000/v571 | blog.npmjs.org |
