CVE-2026-130808: Apache Karaf: feature requirement-add installs bundles from restricted SSH shell

Published Nov 24, 2026
·
Updated

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 (NOMATCH) 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 Software

1 affected component
Apache Karaf<4.4.13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade apache/karaf to a version that resolves this vulnerability.

    Fixed in 4.4.13
  2. Upgrade

    Upgrade apache/karaf to a version that resolves this vulnerability.

    Fixed in 4.5.0
  3. Configuration

    Add `requirement-add = admin` and `requirement-remove = admin` to etc/org.apache.karaf.command.acl.feature.cfg and any child-instance etc/org.apache.karaf.command.acl.feature.cfg files.

    Apache Karaf feature command ACL configuration requirement-add and requirement-remove = admin

Event History

Nov 24, 2026
CVE Published
via MITRE·04:59 PM
Data Sourced
via MITRE·04:59 PM
DescriptionWeakness
Data Sourced
via NVD·05:18 PM
DescriptionWeakness

Frequently Asked Questions

1

Which users can exploit this issue under the default command ACL configuration?

An authenticated SSH user with only the ssh and viewer roles can execute the affected commands. They do not need the admin role that is required for feature:install, feature:uninstall, feature:start, and feature:stop.

2

What does an attacker need to provide to install code through the affected command?

The attacker can invoke feature:requirement-add with a bundle URI, such as bundle:<uri>, or a feature name. The requirement is passed to FeatureService.addRequirements(), which can resolve, download, install, and start the bundle.

3

What is the practical impact of successful exploitation?

An attacker can cause an arbitrary bundle to run with the full authority of the Karaf JVM process, bypassing the admin-only restrictions on feature:install and bundle:install. They can also use feature:requirement-remove to remove provisioning requirements and uninstall features or bundles.

4

Why are these commands allowed despite the command ACL mechanism?

The default feature command ACL configuration has no entries for feature:requirement-add or feature:requirement-remove. Karaf's command guard permits commands for which no ACL rule matches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203