CVE-2018-11786
Improper Privilege Management in Apache Karaf
Description
In Apache Karaf prior to 4.2.0 release, if the sshd service in Karaf is left on so an administrator can manage the running instance, any user with rights to the Karaf console can pivot and read/write any file on the file system to which the Karaf process user has access. This can be locked down a bit by using chroot to change the root directory to protect files outside of the Karaf install directory; it can be further locked down by defining a security manager policy that limits file system access to those directories beneath the Karaf home that are necessary for the system to run. However, this still allows anyone with ssh access to the Karaf process to read and write a large number of files as the Karaf process user.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.karaf » apache-karaf | < 4.2.0 | 4.2.0 |
Blast radius
51% of the dependent artifacts (54) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,548 |
| 2 hops | 969 |
| 3 hops | 266 |
| 4 hops | 49 |
| 5 hops | 20 |
Most used dependents
- io.fabric8 » fabric8-maven-plugin676 usages
- org.opendaylight.odlparent » features-test93 usages
- org.codice.ddf » kernel27 usages
- io.fabric8 » fabric8-karaf15 usages
- org.apache.karaf.itests » itests9 usages
- pentaho » pentaho-karaf-assembly8 usages
- org.jboss.fuse » jboss-fuse8 usages
- org.apache.karaf.tooling » org.apache.karaf.tooling.testing7 usages
- pentaho » pentaho-big-data-plugin6 usages
- org.openengsb.framework » openengsb-framework6 usages
- org.fusesource.fabric » fuse-fabric6 usages
- org.apache.camel » camel-test-karaf5 usages
- org.apache.camel » apache-camel5 usages
- org.codice.ddf » ddf5 usages
- org.opendaylight.odlparent » karaf-plugin5 usages
Computed from the dependency graph of build 20261126.1706 (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.
References
| Advisory | NVD CVE-2018-11786 | nvd.nist.gov |
| Advisory | GitHub advisory GHSA-9448-c9wq-jg9v | github.com |
| Web | jira/browse/KARAF-5427 | issues.apache.org |
| Web | thread.html/5b7ac762c6bbe77ac5d9389f093fc6dbf196c36d788e3d7629e6c1d9@<dev.karaf.apache.org ... | lists.apache.org |
| Web | security/cve-2018-11786.txt | karaf.apache.org |
