CVE-2026-140880: Apache Karaf: Incorrect Authorization vulnerability in the config service
The fix for CVE-2026-91012, released in Apache Karaf 4.4.12, restricts the file a new configuration is written to so that it stays inside ${karaf.etc}. This is not sufficient, because files reserved to the admin role, such as etc/users.properties and the JMX and command ACL files, are also located in ${karaf.etc}.
ConfigRepositoryImpl, which backs the config MBean and the config: shell commands, still derives the target file from caller-supplied input such as the felix.fileinstall.filename property. The shipped ACLs select the required role from the configuration PID, not from the file that is written. An authenticated user with the manager role can therefore use a PID they are allowed to edit to overwrite a reserved file, and gain the admin role.
Users are recommended to upgrade to version 4.4.13 or 4.5.0, which fix the issue. A new configuration can now only be written to a file named after its own PID or factory PID, with a configuration file extension.
MitigationUsers who cannot upgrade should grant the manager role only to users trusted as much as admins. They can also require the admin role for edit, update and property- in etc/org.apache.karaf.command.acl.config.cfg, and for create, update, setProperty, appendProperty and deleteProperty in etc/jmx.acl.org.apache.karaf.config.cfg.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Apache Karafto a version that resolves this vulnerability.Fixed in 4.4.13 - Upgrade
Upgrade
Apache Karafto a version that resolves this vulnerability.Fixed in 4.5.0 - Compensating control
Grant the manager role only to users trusted to the same degree as admins.
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated user with the manager role can exploit it. The user must be able to edit an allowed configuration PID through the config MBean or config:* shell commands.
What access can an attacker gain?
A manager-role user can overwrite files reserved for administrators, including users.properties and JMX or command ACL files. This can be used to gain the admin role.
Are default ACLs affected?
Yes. The shipped ACLs determine the required role from the configuration PID rather than the file ultimately written, allowing an authorized PID update to target a reserved file.
What can be done if an upgrade is not immediately possible?
Grant the manager role only to users who should be trusted at the same level as administrators. Alternatively, require the admin role for edit, update, and property-* operations in etc/org.apache.karaf.command.acl.config.cfg.
Which versions address the issue?
Upgrade to Apache Karaf 4.4.13 or 4.5.0. These versions restrict new configuration files to names based on their own PID or factory PID and require a configuration-file extension.