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

Published Dec 2, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title 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
Weaknesses CWE-73
References

Subscriptions

No data.

Weaknesses
  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Dec 2, 2026, 5:49 PM
Reserved
Dec 1, 2026, 1:59 PM
Status
Awaiting Analysis
Published
Dec 2, 2026, 6:18 PM
Modified
Dec 2, 2026, 7:06 PM