Apache Karaf: Improper release of ClassLoader references via static ThreadLocal caching
Apache Software Foundation Apache Karaf
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Karaf |
| No fix yet |
Original 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.
From the CVE record · apache