Apache has disclosed CVE-2026-91012, a path traversal flaw (CWE-22) in the Apache Karaf configuration service. It lets an authenticated manager-role operator write attacker-controlled content to arbitrary files, escalate to the admin role, and take over the container.
Apache rates it important, and the affected component is org.apache.karaf.config.core.impl before version 4.4.12. The defect sits in ConfigRepositoryImpl#update(pid, properties).
This method backs the config MBean and the config:* shell commands. It builds the destination file from caller-supplied input and never checks that the resolved canonical path stays inside ${karaf.etc}.
Apache Karaf CVE-2026-91012 Path Traversal
Two code paths are reachable. If the submitted property map contains a felix.fileinstall.filename entry, getCfgFileFromProperty converts that value directly into a File object.
The value can therefore point to any absolute path the Karaf JVM can write. If the entry is absent, generateConfigFilename() concatenates the configuration PID verbatim into new File(karaf.etc, pid + “.cfg”). A PID containing “..” segments then resolves outside the configuration directory.
createFactoryConfiguration() has the same flaw through its factory PID and alias parameters. Missing canonical path validation is the common cause across all three inputs.
Karaf’s shipped command and JMX access control lists treat the update operation as a manager-level action. The relevant entry in org.apache.karaf.command.acl.conf.cfg reads “update = manager”. A manager can therefore reach both vulnerable paths without holding any elevated privilege.
The same ACL layer reserves several files to the admin role, and the traversal primitive bypasses that restriction. Those files include etc/users.properties, the etc/.acl..cfg files, and etc/org.apache.karaf.management.cfg. Overwriting users.properties lets a manager grant themselves the admin role.
Rewriting the ACL or management configuration files can weaken the remaining authorization boundaries and open the way to full container takeover.
Karaf already protected one sibling code path. ConfigMBeanImpl.install() and the config:install shell command apply a finalname.contains(“..”) string check. That check is weak.
It does not stop absolute paths, and it does not stop symlink-based escapes. It was also never applied to ConfigRepositoryImpl.update() or createFactoryConfiguration(). This is a recurring pattern in path traversal vulnerabilities: a denylist on one entry point leaves parallel write paths exposed.
The write primitive is limited by the operating system permissions of the Karaf service account. It does not grant root access unless the service runs as root or can modify privileged locations.
An arbitrary file write can still support persistence, secret replacement, and later code execution. Red Hat confirmed that the embedded Karaf configuration service in JBoss Fuse deployments is affected. It describes the result as complete privilege escalation to administrator.
Security teams tracking privilege escalation flaws should treat the manager role as equivalent to admin on any unpatched node. An exposed SSH shell or JMX endpoint makes that risk larger.
Upgrading to 4.4.12 is no longer enough. The 4.4.12 fix restricted the target file to ${karaf.etc}, but the reserved admin files live in that same directory. Apache has since published CVE-2026-140880 and CVE-2026-141271, which describe bypasses of the first fix.
In these follow-on issues, the shipped ACLs select the required role from the configuration PID, not from the file that is written. A manager can use a PID they may edit to overwrite a reserved file and gain admin. Apache lists CVE-2026-141271 as important, affecting Karaf 4.2.7 before 4.4.13. It states that users who upgraded to 4.4.12 are still affected.
A separate issue, CVE-2026-129959, exposes the karaf.base tree through the SFTP and SCP subsystems to low-privileged authenticated users when sftpEnabled is true.
That default allows reads of etc/users.properties and etc/host.key, and writes into deploy/. Together these flaws show a pattern of weak authorization across Karaf’s management plane. Defenders following Apache Karaf security advisories should track the whole cluster, not one identifier.
Patching and Mitigation
Apache recommends upgrading to Karaf 4.4.13 or 4.5.0. In those releases a configuration can be written only to a file named after its own PID or factory PID, with a configuration file extension. An existing backing file must also be a configuration file.
Teams that cannot upgrade should grant the manager role only to users trusted as much as administrators. They should also require the admin role for edit, update, and the property-* operations in etc/org.apache.karaf.command.acl.config.cfg.
In etc/jmx.acl.org.apache.karaf.config.cfg, they should require admin for create, update, setProperty, appendProperty, and deleteProperty. Restricting network access to the SSH and JMX interfaces further reduces exposure.
Responders should also audit etc/users.properties, the ACL files, and etc/org.apache.karaf.management.cfg for unexpected modifications or recent timestamps. They should review config:* command history and JMX audit logs for PIDs containing “..”, absolute paths in felix.fileinstall.filename, and unexpected files outside ${karaf.etc}. Running Karaf under a dedicated low-privilege account, with a read-only filesystem for sensitive paths, limits what the write primitive can reach.
The reporter credited for CVE-2026-91012 is n0mi1k.
FAQ
Which Apache Karaf versions are affected by CVE-2026-91012? Versions before 4.4.12 are affected, but 4.4.12 is itself incomplete, so upgrade to 4.4.13 or 4.5.0.
What privilege does an attacker need to exploit it? An authenticated user with the manager role, through the config MBean or the config:* shell commands.
What is the impact of exploitation? An arbitrary file write that lets the attacker overwrite users.properties, grant themselves admin, and take over the container.
What is the workaround if patching is delayed? Limit the manager role to trusted administrators, require admin for config update operations in the ACL files, and restrict SSH and JMX access.