Summary
In Apache Karaf, the shell command ACL for the feature scope (etc/org.apache.karaf.command.acl.feature.cfg) restricts feature:install, feature:uninstall, feature:start and feature:stop to the admin role. It has no entry for feature:requirement-add or feature:requirement-remove. The resolver turns these requirements into the same install/start or uninstall actions. A bundle: requirement downloads and starts an arbitrary bundle, and a feature: requirement installs that feature.
Per the CVSS vector, the attack is network-based, low complexity and needs no user interaction. The attacker must be authenticated, but low privileges are enough: only the viewer and ssh roles. Such a user can make Karaf download, install and start an attacker-chosen bundle. That bundle runs with the full authority of the Karaf process, meaning full compromise of confidentiality, integrity and availability. This bypasses the authorization meant to restrict feature:install and bundle:install to administrators.
This is the same class of issue as the earlier feature:repo-add -i / feature:repo-remove -u bypass, on sibling commands that fix did not cover. The vulnerability is not listed in the CISA KEV catalog.
Who is affected
Organizations running Apache Karaf up to 4.4.12 that expose remote shell (SSH) access to users with the viewer role or other non-admin roles.
What to do
- Upgrade to Apache Karaf 4.4.12 or 4.5.0 (or later), which restrict feature:requirement-add and feature:requirement-remove to the admin role. The record also lists 4.4.12 as affected, so verify against the vendor's official advisory.
- As an interim workaround, add the lines 'requirement-add = admin' and 'requirement-remove = admin' to etc/org.apache.karaf.command.acl.feature.cfg. The change takes effect at runtime without a restart.
- Review which users hold the viewer and ssh roles, and limit SSH access to the Karaf console to trusted networks and people.
- Review installed bundles, installed features and shell logs for unexpected installations.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
References
- lists.apache.org/thread/trrzwgw5z0pzhk46cyvl6fvr7f6shgkz vendor advisory
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Summaries are AI-written under strict rules; always check the vendor's official advisory.