CVE-2019-0191
Moderate severity vulnerability that affects org.apache.karaf:apache-karaf and org.apache.karaf:karaf
Description
Apache Karaf kar deployer reads .kar archives and extracts the paths from the "repository/" and "resources/" entries in the zip file. It then writes out the content of these paths to the Karaf repo and resources directories. However, it doesn't do any validation on the paths in the zip file. This means that a malicious user could craft a .kar file with ".." directory names and break out of the directories to write arbitrary content to the filesystem. This is the "Zip-slip" vulnerability - https://snyk.io/research/zip-slip-vulnerability. This vulnerability is low if the Karaf process user has limited permission on the filesystem. Any Apache Karaf releases prior 4.2.3 is impacted.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.karaf » apache-karaf | < 4.2.3 | 4.2.3 |
| org.apache.karaf » karaf | < 4.2.3 | 4.2.3 |
Blast radius
52% of the dependent artifacts (58) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,650 |
| 2 hops | 1,006 |
| 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-2019-0191 | nvd.nist.gov |
| Advisory | GitHub advisory GHSA-869j-5855-hjpm | github.com |
| Web | thread.html/6856aa7ed7dd805eaf65d0e5e95027dda3b2307aacd1ab4a838c5cd1@<user.karaf.apache.or ... | lists.apache.org |
| Web | thread.html/cef9a2d4b547625e5214684283ac5c59c9d9740e092e777dc3f85070@<commits.karaf.apache ... | lists.apache.org |
| Web | bid/107462 | securityfocus.com |
