Skip to main content

Apache Karaf CVE-2026-141271

| EUVDEUVD-2026-141744 HIGH
External Control of File Name or Path (CWE-73)
2026-12-02 apache GHSA-j5rj-x88v-2w3f
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as manager role via SSH/JMX
  2. Delivery
    Access config shell command or config MBean
  3. Exploit
    Point config write at etc/users.properties via felix.fileinstall.filename
  4. Execution
    Overwrite admin-reserved file
  5. Impact
    Gain admin role and full container control

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Requires an authenticated account already holding the Karaf manager role with access to the config shell commands (edit/property-set/property-append/property-delete/update) or the config MBean (create/setProperty/appendProperty/deleteProperty/update), reachable over SSH or JMX. Exploitation specifically abuses the felix.fileinstall.filename property (or the configuration storage type) when updating a configuration that has no backing file yet, to redirect the write at an administrator-reserved file in ${karaf.etc} such as etc/users.properties or the JMX/shell command ACLs. Limiting factors: the attacker must possess the privileged manager role (not anonymous), must have network reach to SSH or JMX, and the target must run an affected version (4.2.7 up to but not including 4.4.13 - note 4.4.12 does NOT mitigate this). The only complete fix is upgrading to 4.4.13 or 4.5.0; interim mitigations per the advisory are to grant the manager role only to admin-trusted users or require the admin role for the listed config commands/MBean operations, and to restrict SSH and JMX network access.

Impact

This is a privilege-escalation flaw (CWE-73, external control of file name/path) in Apache Karaf's config service: an already-authenticated user holding the manager role can overwrite administrator-reserved files under ${karaf.etc} (etc/users.properties, JMX and shell command ACLs) and thereby grant themselves the admin role. No CVSS score or vector is provided in the input, so attack-vector/complexity/privilege signals cannot be read from a scored metric and are inferred from the description only. There is no EPSS score, no CISA KEV listing, and no PoC or exploit reference supplied - so there is no public exploit identified at time of analysis and no evidence of active exploitation. The strongest real-world signal is the vendor-reported severity implied by the mechanism (full escalation to admin) combined with the vuln.today decision label of 'this_week', indicating a prompt-but-not-emergency priority. The practical risk is bounded by a real precondition: the attacker must already possess the manager role AND reach the config shell (SSH) or config MBean (JMX). This is therefore a meaningful post-authentication escalation rather than an unauthenticated internet-wide threat. Note also that this specifically defeats the incomplete prior fix (CVE-2026-91012): operators who upgraded only to 4.4.12 remain exposed, which is an important and easily-missed risk amplifier.

Exploit ScenarioDerived

An authenticated user granted only the manager role connects to the Karaf console over SSH (or to the config MBean over JMX) and issues a config update whose target file is steered - via the felix.fileinstall.filename property or the configuration storage type - at a reserved file such as etc/users.properties. By overwriting that file the attacker adds themselves to the admin role and gains full administrative control of the container. No public exploit or PoC reference is provided in the available data.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Privilege escalation in Apache Karaf (4.2.7 up to but not including 4.4.13) lets an authenticated user who already holds the manager role overwrite administrator-reserved files inside ${karaf.etc} - such as etc/users.properties and the JMX and shell command ACL definitions - and thereby obtain the admin role. The flaw is reachable through the config shell commands or the config MBean over SSH or JMX: when a configuration with no backing file is updated, the caller-supplied felix.fileinstall.filename property (or the configuration storage type) is used to choose the file that gets written, and the earlier ${karaf.etc} restriction from CVE-2026-91012 did not exclude files reserved to administrators, so environments upgraded to 4.4.12 remain vulnerable. No public exploit code has been identified at time of analysis and there is no KEV listing; exploitation requires an already-privileged manager account plus network reach to SSH or JMX.

RemediationAI

Upgrade to Apache Karaf 4.4.13 or 4.5.0, which are the only complete fixes - 4.4.12 is not sufficient even though it addressed CVE-2026-91012 (advisory: https://lists.apache.org/thread.html/82wcp3vtxtv8dw1z7g9xxstb7k96tgwg). If upgrading is not immediately possible, the advisory's compensating controls are to grant the manager role only to users who are trusted as administrators, or alternatively require the admin role for edit, property-set, property-append, property-delete and update in etc/org.apache.karaf.command.acl.config.cfg and for create, setProperty, appendProperty, deleteProperty and update in etc/jmx.acl.org.apache.karaf.config.cfg - with the trade-off that legitimate manager-role operators lose the ability to manage configurations through those paths. Additionally restrict network access to SSH and JMX so only trusted administrative networks can reach the Karaf management surfaces, accepting the operational cost of tighter access control for remote administration and tooling.

Affected VersionsENISA

Apache Karaf 4.2.7 <4.4.13

Affected Packages

euvd apache_karaf fix: 4.4.13

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Apache Karaf's configuration service is built on Apache Felix Config Admin and the Felix File Install handler, which persists configuration dictionaries to files on disk. This issue is CWE-73 (external control of file name or path): before a configuration has a backing file, the service honors the felix.fileinstall.filename property provided by the caller to decide the write target, and the configuration storage type can also be abused to select the destination. The fix for CVE-2026-91012 confined writes to ${karaf.etc}, but Karaf stores security-critical material directly in that directory - the default user/role store etc/users.properties plus the shell command ACL (etc/org.apache.karaf.command.acl.config.cfg) and JMX ACL (etc/jmx.acl.org.apache.karaf.config.cfg) definitions - so a path under ${karaf.etc} is not sufficient validation. The 4.4.13/4.5.0 fix hardens the logic so a configuration can only be written to a file named after its own PID (or, for a factory configuration, its factory PID), and an existing backing file must itself be a configuration file. The assessed vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H reflects network reachability to the config surface, low attack complexity, and high confidentiality, integrity and availability impact once the write primitive is used to elevate to admin; the trigger is the specific config-update path described in the advisory, not a generic file-write bug.

Know when Apache Karaf gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (apache) PRIMARY HIGH
vuln.today AI 8.8 HIGH

Remotely reachable over SSH/JMX (AV:N) with a straightforward config write (AC:L), but requires the privileged manager role (PR:L); successful escalation to admin yields full C/I/A impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (apache).

Lifecycle Timeline

2
Patch available
Dec 02, 2026 - 19:19 EUVD
CVE Published
Dec 02, 2026 - 17:49 cve.org
HIGH

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Apache Karaf versions 4.2.7 through 4.4.12 contain a high-severity privilege escalation flaw that allows an authenticated manager to overwrite administrator-reserved files and gain full administrative control. This compromises the integrity of the Karaf environment, potentially exposing sensitive configurations and enabling further attacks. Leadership should prioritize remediation because unpatched systems remain vulnerable and could lead to broader network compromise.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict network access to SSH/JMX to trusted hosts; enforce least privilege by limiting manager role assignments; monitor and audit configuration changes; disable config shell commands and config MBean for non-admin users if feasible.

Threat Intelligence Overview

Prevalence
Medium
Apache OSGi runtime common in enterprise Java integration stacks, not ubiquitous
Social Media
2
Sightings
Data Quality
1 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy