CVE-2026-92230

Apache Karaf: Improper release of ClassLoader references via static ThreadLocal caching

Published Sep 17, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Apache Karaf's XmlUtils cached XML parser/transformer factories in static ThreadLocal fields on long-lived container threads. Because a ThreadLocal value outlives the OSGi bundle that created it, repeated bundle or feature install, update, or refresh operations can leave successive bundle ClassLoader's pinned in memory and unreachable for garbage collection, leading to unbounded Metaspace growth and eventual denial of service of the Karaf instance.

Analysis

AI-generated

Technical impact

Apache Karaf’s XmlUtils stores XML parser and transformer factories in static ThreadLocal fields on non‑terminating container threads. Because a ThreadLocal value outlives the OSGi bundle that created it, successive bundle or feature install, update, or refresh operations can accumulate ClassLoader references that remain pinned and unreachable for garbage collection. This leak grows the JVM Metaspace without bound, eventually exhausting resources and causing the Karaf instance to become unavailable. The vulnerability is a resource leakage (CWE‑401) and improper release of class loader references (CWE‑772).

Affected Systems

Apache Software Foundation’s Apache Karaf product is affected. No specific release or patch level is listed in the advisory; any version that contains the static ThreadLocal caching of XmlUtils may be vulnerable.

Risk and Exploitability

The CVSS base score of 7.5 indicates a high impact for a successful exploitation. The EPSS score of less than 1% suggests a very low probability that this issue will be actively exploited in the wild, and the vulnerability is not listed in CISA’s KEV catalog. The attack path requires the ability to install or update bundles or features in a running Karaf container, so privileged users or attackers who can gain such access to the Karaf management interface can repeatedly trigger the memory leak leading to a denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Karaf update that removes the static ThreadLocal caching from XmlUtils or deploy a vendor issued patch addressing the ClassLoader leakage
  • If a patch is not immediately available, schedule regular restarts of the Karaf container to clear held ClassLoader references and reset Metaspace usage
  • Limit bundle install, update, or refresh operations in a production environment and monitor JVM Metaspace metrics (e.g., via -XX:+PrintGCDetails or JMX) to detect abnormal growth and trigger alerts

Generated by OpenCVE AI on September 19, 2026 at 18:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Apache
Apache karaf
Vendors & Products Apache
Apache karaf
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Apache Karaf's XmlUtils cached XML parser/transformer factories in static ThreadLocal fields on long-lived container threads. Because a ThreadLocal value outlives the OSGi bundle that created it, repeated bundle or feature install, update, or refresh operations can leave successive bundle ClassLoader's pinned in memory and unreachable for garbage collection, leading to unbounded Metaspace growth and eventual denial of service of the Karaf instance.
Title Apache Karaf: Improper release of ClassLoader references via static ThreadLocal caching
Weaknesses CWE-401
CWE-772
References
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Sep 18, 2026, 1:33 PM
Reserved
Sep 15, 2026, 7:05 PM
Status
Awaiting Analysis
Published
Sep 17, 2026, 7:17 PM
Modified
Sep 18, 2026, 5:48 PM