GHSA-3c25-9cqf-vxfc
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain bundle-management access to Karaf
-
DeliveryRepeatedly install/update/refresh bundles
-
ExploitThreadLocal pins dead ClassLoaders
-
ExecutionUnbounded Metaspace growth
-
ImpactJVM OutOfMemory / container DoS
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
|
| Exploitation Conditions | Requires the ability to perform repeated bundle or feature install/update/refresh operations against a running Apache Karaf instance (versions before 4.4.11) that uses XmlUtils - i.e. access to Karaf's deployment/management surface (SSH/console, JMX, or feature deployment), which is normally an administrative or trusted-deployer capability. Exploitation is not instantaneous: it depends on accumulating many bundle-lifecycle cycles to grow Metaspace to exhaustion, and long-lived container threads must persist across those cycles. The condition can also occur organically from high-churn continuous deployment. Limiting factors: privileged bundle-management access, the cumulative/time-dependent nature of the leak, and JVM Metaspace sizing. |
| Impact | The CVSS 3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) rates this as HIGH and pure-availability, but that scoring is questionable and likely inflates real-world risk. The vulnerability (CWE-401 memory leak) is triggered by 'repeated bundle or feature install, update, or refresh operations' - these are privileged administrative/deployment actions in the Karaf OSGi runtime, not something an anonymous network attacker can invoke, so the vendor's PR:N and AV:N are optimistic. There is no EPSS score, no CISA KEV listing, and no public exploit provided in the input, so exploitation status is: no public exploit identified at time of analysis. Even where triggerable, the impact is gradual Metaspace exhaustion over many bundle lifecycle operations, not an instant crash - closer to a resource-exhaustion reliability defect than a weaponizable remote DoS. Net: this is a genuine stability bug worth patching on managed Karaf instances, but the 7.5 overstates practical severity because the trigger requires administrative bundle-management capability and time/accumulation. Missing signals: no EPSS, no KEV, no POC; conflict: CVSS implies unauthenticated network trigger while the description implies privileged, repeated container-management operations - verify the actual trigger surface against the vendor advisory. |
| Exploit ScenarioDerived | An operator (or a tenant/user with rights to deploy or refresh bundles/features on a shared Karaf instance) repeatedly installs, updates, or refreshes bundles; each cycle pins a dead bundle ClassLoader in a static ThreadLocal, so Metaspace grows unbounded until the JVM exhausts it and the Karaf instance becomes unresponsive. No public exploit code is referenced; the condition can also arise unintentionally from normal continuous-deployment churn rather than deliberate attack. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 18, 2026
Metaspace exhaustion in Apache Karaf before 4.4.11 allows an operator with access to Karaf's bundle- and feature-management surface (SSH console, JMX, or feature deployment) to crash the container by repeatedly installing, updating, or refreshing bundles and features. Each lifecycle cycle leaves the previous bundle ClassLoader pinned in memory via static ThreadLocal caches in XmlUtils, so Metaspace grows without bound until the JVM or the Karaf instance fails - a pure availability impact (CWE-401, missing release of memory). Our independent assessment rates this CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H (local privileged access, high attack complexity, not the vendor-published AV:N/AC:L/PR:N 7.5), because exploitation requires trusted bundle-management privileges and enough cumulative lifecycle churn to exhaust Metaspace; the condition can also occur organically in high-churn continuous-deployment environments. No public exploit code or in-the-wild exploitation was identified at time of analysis, and the issue is not listed in CISA KEV.
Earlier versions of this analysis (1)
Unbounded Metaspace growth in Apache Karaf before 4.4.11 lets a highly privileged operator or attacker with lifecycle-management access deny service to the container by repeatedly installing, updating, or refreshing OSGi bundles, causing successive bundle ClassLoaders to be pinned in memory and never garbage collected. The flaw is a resource-exhaustion issue (memory leak class, CWE-772/CWE-401 style) rather than code execution or data disclosure, and it manifests only after many repeated lifecycle operations, presenting as gradual Metaspace exhaustion on instances with frequent hot-deploy or redeploy churn. Exploitation requires privileges (assessed CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H, moderate severity), and no public exploit code or confirmed active exploitation was identified at time of analysis.
RemediationAI
Upgrade to Apache Karaf 4.4.11 or later, which is the first release above the affected range and is the vendor-released fix for the ThreadLocal classloader-retention defect (Vendor-released patch: 4.4.11); the release guidance and advisory are linked from https://karaf.apache.org/ and the Apache mailing list thread https://lists.apache.org/thread/pxgqjvsmzgpvgly1qf1w300qxsp8bxdj, with the oss-security advisory at https://seclists.org/oss-sec/2026/q3/816. Where immediate upgrade is not possible, reduce exposure by restricting access to Karaf's management surfaces - the SSH console, JMX port, and feature/bundle deployment endpoints - to trusted administrators only and disabling remote JMX/management listeners that are not required, at the cost of losing remote administration convenience; cap the blast radius by setting an explicit -XX:MaxMetaspaceSize so the JVM fails predictably rather than consuming host memory, accepting that the container will still terminate once the limit is reached; and reduce bundle-lifecycle churn by consolidating deployments and scheduling periodic Karaf restarts in high-churn continuous-delivery pipelines, which contains but does not fix the leak. Monitoring Metaspace growth across bundle refresh events provides an early warning and can be combined with staged rollouts; note that these compensating controls do not remove the underlying ThreadLocal retention, so upgrading to 4.4.11 remains the only complete remediation. No vendor-released patch is required for versions already at or above 4.4.11, and JVM heap tuning or GC changes should not be treated as a substitute for the fix because the retained objects are ClassLoader metadata in Metaspace rather than reclaimable heap garbage.
Affected VersionsENISA
Affected Packages
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 is an OSGi-based runtime container in which applications are deployed as bundles, each loaded by its own ClassLoader that is created, refreshed, and discarded as bundles are installed, updated, or refreshed. The XmlUtils helper in Karaf cached JAXP XML parser and transformer factory instances in static ThreadLocal fields. ThreadLocals are keyed by the thread that set them, and Karaf processes bundle lifecycle events on long-lived container threads that outlive any individual bundle. When such a thread caches a factory object created by a bundle's ClassLoader, the ThreadLocal - and therefore the thread's thread-local map - retains a strong reference to that bundle ClassLoader indefinitely, because the ThreadLocal value is never cleared when the bundle is stopped or refreshed. The result is a classic CWE-401 (Missing Release of Memory after Effective Lifetime): each bundle/feature install, update, or refresh cycle can add another unreachable-but-retained ClassLoader, and ClassLoader metadata lives in JVM Metaspace, which unlike the Java heap is not reclaimed by ordinary GC until the ClassLoader itself becomes strongly unreachable. Repeated cycles therefore produce monotonically increasing Metaspace usage, ending in java.lang.OutOfMemoryError: Metaspace and loss of the Karaf instance. The affected component is the XmlUtils utility shipped with Apache Karaf; EUVD records the affected range as Apache Karaf 0 through versions earlier than 4.4.11, and no CPE identifiers were supplied in the source data.
Know when 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Trigger is repeated privileged bundle-management operations (PR:H, local/management-plane AV:L) that only cause DoS after cumulative Metaspace exhaustion (AC:H), availability-only impact A:H.
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
4Description PRE-NVD
Articles & Coverage 1
Executive ViewAI
Apache Karaf deployments prior to version 4.4.11 are vulnerable to a memory exhaustion flaw that can crash the container, causing service outages. This affects organizations that rely on Karaf for integration and application hosting, especially those with frequent bundle deployments or privileged access to management interfaces. Leadership should prioritize patching to maintain service availability and prevent operational disruptions.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
An issue was discovered in Legion of the Bouncy Castle BC Java 1.65 and 1.66. Rated high severity (CVSS 8.1), this vulne
Privilege escalation to remote code execution in Apache Karaf before 4.4.12 lets any authenticated shell session - inclu
Authenticated path traversal in Apache Karaf before 4.4.12 allows a principal holding the shipped 'manager' role to writ
This vulnerable is about a potential code injection when an attacker has control of the target LDAP server using in the
Authorization bypass in Apache Karaf before 4.4.12 allows an authenticated JMX client holding any role - including the l
In Apache Karaf prior to 4.2.0 release, if the sshd service in Karaf is left on so an administrator can manage the runni
In Apache Karaf version prior to 3.0.9, 4.0.9, 4.1.1, when the webconsole feature is installed in Karaf, it is available
OpenDaylight Karaf 0.6.1-Carbon fails to clear the cache after a password change, allowing the old password to be used u
Apache Karaf kar deployer reads .kar archives and extracts the paths from the "repository/" and "resources/" entries in
Privilege escalation in Apache Karaf versions before 4.4.12 allows any authenticated user of the shell or SSH console -
In Karaf, JMX authentication takes place using JAAS and authorization takes place using ACL files. Rated medium severity
Apache Karaf before 4.0.10 enables a shutdown port on the loopback interface, which allows local users to cause a denial
EUVD-2026-82394
NVD
CVE.org
EPSS
Exploit-DB