CVE-2026-141271: Privilege Escalation via Configuration File Overwrite in Apache Karaf
Apache Karaf versions 4.2.7 through versions before 4.4.13 contain a configuration-write vulnerability that allows an authenticated manager-role user to overwrite administrator-reserved files and obtain the admin role. When updating a configuration without an existing backing file, the configuration service uses the caller-controlled felix.fileinstall.filename property to select the destination. Configuration storage types can also be used to target administrator-reserved files. The fix for CVE-2026-91012 restricted writes to the Karaf configuration directory but did not protect sensitive files within that directory, leaving Karaf 4.4.12 vulnerable.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An authenticated manager-role user can overwrite sensitive configuration files governing user credentials, role assignments, and shell or JMX access controls. Successful exploitation allows escalation to the Karaf admin role, bypassing the intended separation between configuration-management and administrative privileges.
Mitigation
If you can’t patch tonight, do this now.
If upgrading is not possible, grant the manager role only to users trusted as administrators, or require the admin role for affected configuration operations. For configuration shell commands, restrict edit, property-set, property-append, property-delete, and update to administrators. For the configuration MBean, restrict create, setProperty, appendProperty, deleteProperty, and update to administrators. Additionally, restrict network access to SSH and JMX.
Remediation
Patch, then assume compromise.
Upgrade Apache Karaf to 4.4.13 or 4.5.0. The fix restricts configuration writes to configuration files named after the configuration's own PID or, for factory configurations, its factory PID, and requires existing backing files to be configuration files. Upgrading only to 4.4.12 to address CVE-2026-91012 does not resolve this vulnerability.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-141271 exploited in the wild?
- As of Dec 1, 2026, Mallory has no reports of CVE-2026-141271 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-141271?
- As of Dec 1, 2026, Mallory has found no public exploit for CVE-2026-141271.
- Is there a patch for CVE-2026-141271?
- Upgrade Apache Karaf to 4.4.13 or 4.5.0. The fix restricts configuration writes to configuration files named after the configuration's own PID or, for factory configurations, its factory PID, and requires existing backing files to be configuration files.
Recent activity
2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.