CVE-2026-141271
Apache Karaf: config property-set can redirect configuration writes to reserved files (etc users.properties command JMX ACLs) via felix.fileinstall.filename manager-role user can gain admin
Description
When updating a configuration that has no backing file yet, the Karaf config service used the felix.fileinstall.filename property supplied by the caller to choose the file to write. The fix for CVE-2026-91012 restricted that file to the ${karaf.etc} directory, but files reserved to administrators, such as etc/users.properties and the JMX and shell command ACLs, are located in that directory too. The configuration storage type could also be used to target such a file.
An authenticated user with the manager role, with access to the config shell commands or the config MBean, could overwrite these files and obtain the admin role.
This issue affects Apache Karaf from 4.2.7 before 4.4.13. Users who upgraded to 4.4.12 to address CVE-2026-91012 are still affected.
Users are recommended to upgrade to version 4.4.13 or 4.5.0, which fix the issue: a configuration can only be written to a configuration file named after its own PID or, for a factory configuration, its factory PID. An existing backing file must be a configuration file.
MitigationUsers who can't upgrade should only grant the manager role to users trusted as administrators, or require the admin role for:
- edit, property-set, property-append, property-delete and update in etc/org.apache.karaf.command.acl.config.cfg
- create, setProperty, appendProperty, deleteProperty and update in etc/jmx.acl.org.apache.karaf.config.cfg
Network access to SSH and JMX should also be restricted.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.karaf.config » org.apache.karaf.config.corepreliminary | >= 4.2.7, < 4.4.13 | 4.4.13 |
Blast radius
80% of the dependent artifacts (40) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 80 |
| 2 hops | 1,129 |
| 3 hops | 238 |
| 4 hops | 74 |
| 5 hops | 7 |
Most used dependents
- org.apache.karaf.features » framework236 usages
- org.apache.karaf » apache-karaf231 usages
- org.codice.ddf » kernel27 usages
- org.apache.karaf » apache-karaf-minimal14 usages
- com.mobi » mobi-distribution9 usages
- org.apache.camel » apache-camel5 usages
- org.apache.camel » camel-test-karaf5 usages
- org.apache.brooklyn » apache-brooklyn4 usages
- org.infinispan.server » infinispan-server-testsuite4 usages
- org.opendaylight.odlparent » opendaylight-karaf-resources3 usages
- org.apache.brooklyn » brooklyn-dist-features2 usages
- io.hyte.platform » hyte-runtime2 usages
- org.codice.alliance.distribution » alliance2 usages
- org.apache.brooklyn.ui.modules » brooklyn-ui-modules-features1 usages
- org.apache.brooklyn.ui » brooklyn-ui-features1 usages
Computed from the dependency graph of build 20261202.0245 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
