CVE-2026-130808
Apache Karaf: feature requirement-add installs bundles from restricted SSH shell
Description
In Apache Karaf, the default command ACL configuration for the feature scope (etc/org.apache.karaf.command.acl.feature.cfg, defined in assemblies/features/standard/src/main/feature/feature.xml and the child-instance template instance/src/main/resources/org/apache/karaf/instance/resources/etc/org.apache.karaf.command.acl.feature.cfg) restricts feature:install, feature:uninstall, feature:start, and feature:stop to users with the admin role, while leaving feature:requirement-add and feature:requirement-remove without ACL entries.
Because Karaf's command guard (SecuredSessionFactoryImpl) allows commands with no matching ACL rule (NO_MATCH) to execute, an authenticated SSH user holding only the ssh and viewer roles can execute feature:requirement-add bundle:<uri> (or feature:<name>). RequirementAdd forwards the requirement directly to FeatureService.addRequirements(), causing the resolver to download, install, and start an arbitrary bundle with the Karaf JVM process's full authority, bypassing the admin-only restrictions on feature:install and bundle:install. Similarly, feature:requirement-remove allows removing provisioning requirements and uninstalling features/bundles.
MitigationUsers are recommended to upgrade to Apache Karaf 4.4.13 or 4.5.0.
For existing deployments or upgrades that preserve existing files in etc/, add the following rules to etc/org.apache.karaf.command.acl.feature.cfg (and any child instance etc/org.apache.karaf.command.acl.feature.cfg files):
requirement-add = admin
requirement-remove = admin
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.karaf » apache-karafpreliminary | <= 4.4.12 | - |
Blast radius
63% of the dependent artifacts (73) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,176 |
| 2 hops | 1,445 |
| 3 hops | 384 |
| 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 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.
