CVE-2026-124615

Apache Karaf: feature:requirement-add / feature:requirement-remove command ACL bypass allows a viewer to install and run arbitrary code

Published Nov 24, 2026 CVSS 3.1 · 8.8 High EPSS n/a KEV · Not listed
Description
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, but had no entry for feature:requirement-add or feature:requirement-remove.

The provisioning resolver turns a requirement into the same install/start (or uninstall) action as feature:install / feature:uninstall: a bundle: requirement causes an arbitrary bundle to be downloaded and started, and a feature: requirement installs that feature. Because the two commands had no ACL, a user authenticated with only the viewer (and ssh) role could invoke them and cause Apache Karaf to download, install and start an attacker-chosen bundle, which then runs with the full authority of the Karaf process — thereby bypassing the admin-only authorization enforced on feature:install and bundle:install.

This is the same class of issue as the feature:repo-add -i / feature:repo-remove -u bypass, on sibling commands not covered by that earlier fix.Mitigation: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.

As an interim workaround on affected versions, add the following two lines to etc/org.apache.karaf.command.acl.feature.cfg; the change is picked up at runtime without a restart:

requirement-add = admin

requirement-remove = admin

Analysis

AI-generated

Technical impact

The vulnerability exploits an authorization bypass in Apache Karaf’s feature command ACLs. Because the ACL configuration omitted entries for feature:requirement-add and feature:requirement-remove, users with only the viewer role who can authenticate via SSH could issue those commands. The provisioning resolver treats a requirement as a normal install/start or uninstall action, allowing an attacker to download and run an arbitrary bundle or feature, executing code with full Karaf process authority. This is a class‑of‑issue matching CWE‑863, a privilege escalation or authorization bypass flaw.

Affected Systems

All versions of Apache Karaf before 4.4.12 and 4.5.0 are affected. The fix is available in the 4.4.12 and 4.5.0 releases, which securely restrict feature:requirement-add and feature:requirement-remove to the admin role.

Risk and Exploitability

Without any EPSS data, the probability of exploitation is uncertain, but the flaw provides a straightforward path for a non‑admin user to execute arbitrary code, effectively converting a viewer into a full‑admin operator. The attack surface is limited to systems where an attacker can obtain an SSH or CLI session with viewer credentials. The flaw is not listed in CISA’s KEV catalog, but its impact is high due to the ability to run code with the Karaf process privilege. The most likely exploitation vector, based on the description, is an authenticated attacker using the viewer role via SSH to run the vulnerable commands.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Karaf to version 4.4.12 or later, which restricts feature:requirement-add and feature:requirement-remove to the admin role.
  • If upgrade is not possible, add the following lines to etc/org.apache.karaf.command.acl.feature.cfg – requirement-add = admin and requirement-remove = admin – and reload the configuration at runtime.
  • Revoke SSH access or remove the viewer role from users that should not have CLI privileges, ensuring that only authorized roles can issue feature commands.

Generated by OpenCVE AI on November 24, 2026 at 19:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Apache
Apache karaf
Vendors & Products Apache
Apache karaf
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Description 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, but had no entry for feature:requirement-add or feature:requirement-remove. The provisioning resolver turns a requirement into the same install/start (or uninstall) action as feature:install / feature:uninstall: a bundle: requirement causes an arbitrary bundle to be downloaded and started, and a feature: requirement installs that feature. Because the two commands had no ACL, a user authenticated with only the viewer (and ssh) role could invoke them and cause Apache Karaf to download, install and start an attacker-chosen bundle, which then runs with the full authority of the Karaf process — thereby bypassing the admin-only authorization enforced on feature:install and bundle:install. This is the same class of issue as the feature:repo-add -i / feature:repo-remove -u bypass, on sibling commands not covered by that earlier fix.Mitigation: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. As an interim workaround on affected versions, add the following two lines to etc/org.apache.karaf.command.acl.feature.cfg; the change is picked up at runtime without a restart: requirement-add = admin requirement-remove = admin
Title Apache Karaf: feature:requirement-add / feature:requirement-remove command ACL bypass allows a viewer to install and run arbitrary code
Weaknesses CWE-863
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 24, 2026, 5:53 PM
Reserved
Nov 9, 2026, 6:34 AM
Status
Received
Published
Nov 24, 2026, 5:18 PM
Modified
Nov 24, 2026, 6:18 PM