Missing Authorization
CVE-2026-91085
Summary
Apache Karaf's shell/SSH command security is enforced by per-scope ACL configuration files (etc/org.apache.karaf.command.acl.<scope>.cfg).SecuredSessionFactoryImpl.checkSecurity()resolves the roles required for an invocation and, when no ACL rule matches the command, fails open:ACLConfigurationParser.Specificity.NO_MATCHsetspassCheck = true. The safety valve for this,karaf.secured.command.compulsory.roles, ships commented out inetc/system.properties, so an unmatched command is allowed for any authenticated user. The shippedorg.apache.karaf.command.acl.configACL (assemblies/features/standard/src/main/feature/feature.xml, mirrored intoinstance/.../etc/org.apache.karaf.command.acl.config.cfg) has noinstallentry. It restrictsdeletetoadmin, restrictsedit/property-*/updateon thejmx.acl.*,org.apache.karaf.command.acl.*andorg.apache.karaf.service.acl.*PIDs toadmin, and allowsmanagerfor everything else, butconfig:installwas simply unmatched, and therefore allowed for any authenticated user, including one holding only theviewerrole. config:install <url> <finalname>fetchesurland writes it into${karaf.etc}asfinalname. It callsPathUtils.checkWithin()to block..traversal outsidekaraf.etc, but that folder holds every security-relevant file Karaf ships:users.properties,keys.properties,host.key, and allorg.apache.karaf.*.acl.*files, including the very ACL file that (mis)governs this command. With-o/--override, an existing file is overwritten with attacker-controlled bytes fetched from an arbitrary URL. Becausefelix.fileinstall.dir = ${karaf.etc}(etc/config.properties), Felix FileInstall also watches and reloads any.cfgfile dropped there, closing the loop without requiring a restart. By contrast,bundle:install,feature:installandkar:installare alladmin-only in their own ACLs, andconfig:deleteisadminin this same ACL,config:installwas the outlier. MitigationAddinstall = admininetc/org.apache.karaf.command.acl.config.cfg(create the file is absent), and/or setkaraf.secured.command.compulsory.roles=admininetc/system.properties(and restart) to make unmatched commands fail closed by default. All versions prior to 4.4.12 are affected.
- LOW
- NETWORK
- LOW
- UNCHANGED
- NONE
- LOW
- LOW
- LOW
CWE-862 - Missing Authorization
The missing authorization vulnerability occurs when a software program allows users to access privileged parts of the program without verifying the user credentials. Impact of such a vulnerability depends on the resources employed by the software, ranging from account takeover to sensitive information exposure, denial of service, and complete system takeover.
References
Advisory Timeline
- Published