CyberRota Analysis
AI-GeneratedApache Karaf is vulnerable due to its XmlUtils caching XML parser/transformer factories in static ThreadLocal fields, which can lead to unbounded Metaspace growth when bundles are repeatedly installed, updated, or refreshed. This results in memory being consumed without being released, potentially causing a denial of service for the Karaf instance. Organizations using Apache Karaf should prioritize addressing this issue to prevent service disruptions and ensure optimal resource management.
Original NVD 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.