Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Apache

Advisory Critical CVE Analysis

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.

ApacheWebVulnerabilities

Key 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

  1. Upgrade Apache Karaf to 4.4.13 or later where this issue is fixed.
  2. Review etc/users.properties and JMX/command ACL files for unauthorized modifications.
  3. Restrict access to the Karaf config service to trusted admin accounts only.

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

oss-securityseclists.org

“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

More on this topic