CVE-2026-140880
Apache Karaf: Incorrect Authorization vulnerability in the config service
Description
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.karaf.config » org.apache.karaf.config.corepreliminary | < 4.4.13 | 4.4.13 |
Blast radius
82% of the dependent artifacts (46) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 152 |
| 2 hops | 1,153 |
| 3 hops | 262 |
| 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 20261201.0702 (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.
