CVE-2020-11980
Server-Side Request Forgery in Karaf
Description
In Karaf, JMX authentication takes place using JAAS and authorization takes place using ACL files. By default, only an "admin" can actually invoke on an MBean. However there is a vulnerability there for someone who is not an admin, but has a "viewer" role. In the 'etc/jmx.acl.cfg', such as role can call get*. It's possible to authenticate as a viewer role + invokes on the MLet getMBeansFromURL method, which goes off to a remote server to fetch the desired MBean, which is then registered in Karaf. At this point the attack fails as "viewer" doesn't have the permission to invoke on the MBean. Still, it could act as a SSRF style attack and also it essentially allows a "viewer" role to pollute the MBean registry, which is a kind of privilege escalation. The vulnerability is low as it's possible to add a ACL to limit access. Users should update to Apache Karaf 4.2.9 or newer.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.karaf.management » org.apache.karaf.management.server | < 4.2.9 | 4.2.9 |
Blast radius
66% of the dependent artifacts (124) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,447 |
| 2 hops | 1,124 |
| 3 hops | 9,104 |
| 4 hops | 4,588 |
| 5 hops | 1,660 |
| 6 hops | 62 |
Most used dependents
- io.fabric8 » fabric8-maven-plugin676 usages
- org.apache.karaf » apache-karaf231 usages
- io.fabric8 » fabric-core71 usages
- org.fusesource.fabric » fabric-core33 usages
- org.codice.ddf » kernel27 usages
- io.fabric8 » fabric-git25 usages
- io.fabric8 » fabric-boot-commands24 usages
- io.fabric8 » fabric-cxf20 usages
- io.fabric8 » fabric-commands15 usages
- io.fabric8 » fabric8-karaf15 usages
- org.apache.karaf.admin » org.apache.karaf.admin.management13 usages
- io.fabric8.itests » fabric-itests-common12 usages
- io.fabric8 » fabric-agent11 usages
- io.fabric8.patch » patch-core9 usages
- org.apache.karaf.itests » itests9 usages
Computed from the dependency graph of build 20261128.0605 (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-2020-11980 | nvd.nist.gov |
| Web | apache/karaf commit 3e4c4be | github.com |
| Web | security/cve-2020-11980.txt | karaf.apache.org |
