Summary
In Apache Karaf (versions up to and including 4.4.12), the default command ACL configuration for the "feature" scope restricts feature:install, feature:uninstall, feature:start and feature:stop to the admin role, but defines no ACL entries for feature:requirement-add and feature:requirement-remove. Karaf's command guard (SecuredSessionFactoryImpl) allows commands with no matching ACL rule to execute (CWE-862, missing authorization).
The attack is network-based, low complexity and requires no user interaction, but needs an authenticated SSH user with low privileges (e.g. only the ssh and viewer roles). Such a user can run feature:requirement-add to make the resolver download, install and start an arbitrary bundle with the full authority of the Karaf JVM process, bypassing the admin-only restrictions on feature:install and bundle:install. feature:requirement-remove can likewise remove provisioning requirements and uninstall features/bundles.
The impact is full compromise of confidentiality, integrity and availability (CVSS 8.8, high). The vulnerability is not listed in the CISA KEV catalog.
Who is affected
Organizations running Apache Karaf up to 4.4.12 with SSH console access enabled, especially where users with restricted (non-admin) roles exist.
What to do
- Upgrade to Apache Karaf 4.4.13 or 4.5.0.
- For existing deployments or upgrades that preserve files in etc/, add the rules requirement-add = admin and requirement-remove = admin to etc/org.apache.karaf.command.acl.feature.cfg.
- Add the same rules to etc/org.apache.karaf.command.acl.feature.cfg in every child instance.
- Review which users have SSH access to the Karaf console and restrict the SSH port to trusted networks.
- Review installed bundles and feature requirements for unexpected changes.
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/j7xm2w7yzwnqtzjbdv353d8bygdkspl7 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.