Apache Karaf Patch Gap Lets Attackers Overwrite Admin-Only Config Files
A follow-up flaw in Apache Karaf's config service means the fix for an earlier path-restriction bug (CVE-2026-91012) didn't fully close the door, letting unauthorized writes reach admin-reserved files. Versions before 4.4.13 are affected.
ApacheWebVulnerabilitiesKey points
- CVE-2026-140880 is an incorrect authorization flaw in Apache Karaf's config service, rated moderate.
- It's a bypass of the earlier fix for CVE-2026-91012 in Karaf 4.4.12, which restricted config writes to ${karaf.etc} but not admin-reserved files.
- Files at risk include etc/users.properties and the JMX/command ACL files, which govern credentials and access control.
- Affected versions are Apache Karaf before 4.4.13.
According to a disclosure posted on oss-security by Jean-Baptiste Onofré, Apache Karaf carries a new incorrect authorization vulnerability tracked as CVE-2026-140880, rated moderate severity.
The issue is a regression in an earlier fix. Karaf 4.4.12 patched CVE-2026-91012 by restricting where new configuration files could be written, confining them to the ${karaf.etc} directory. However, that restriction wasn't strict enough: it still allows writes to files inside etc/ that are meant to be reserved for the admin role, specifically naming etc/users.properties along with the JMX and command ACL files.
Because those files control user credentials and access-control rules for JMX and shell commands, a non-admin actor able to reach the config service could potentially modify them, undermining the role-based restrictions Karaf relies on.
Who's affected
All Apache Karaf deployments running versions before 4.4.13 are impacted.
What to do
The advisory indicates this is fixed in Apache Karaf 4.4.13. Administrators running affected versions should plan to upgrade. No workaround is described in the source beyond upgrading.
What to do
- Upgrade Apache Karaf to 4.4.13 or later where this issue is fixed.
- Review etc/users.properties and JMX/command ACL files for unauthorized modifications.
- Restrict access to the Karaf config service to trusted admin accounts only.
Original report
“CVE-2026-140880: Apache Karaf: Incorrect Authorization vulnerability in the config service”
Posted by Jean-Baptiste Onofré on Dec 01 Severity: moderate Affected versions: - Apache Karaf before 4.4.13 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 fil…
Vulnerabilities mentioned
- CVE-2026-140880
- CVE-2026-91012 Critical
- Apache Airflow asset events API can expose Dag run details to restricted users (CVE-2026-120351)
- Apache TinkerPop Fixes Unsafe Deserialization Flaw in gremlin-server (CVE-2026-134135)
- Apache TinkerPop DoS Flaw CVE-2026-74249 Hits GraphBinary Deserializer
- Ubuntu Ships Log4j 2 Fixes for Three CVEs, Including a TLS Hostname Check Flaw in the Socket Appender
- Ubuntu Issues ActiveMQ Update for OpenWire Flaw That Can Exhaust Resources