ClassGraph before 4.8.201, 5.0.3, and 6.0.3 DoS via Resource.load() Decompression
- CVE-2026-145564
- EUVD-2026-145714
Summary
ClassGraph, a Java classpath scanning library, has a denial of service flaw in versions before 4.8.201, 5.x before 5.0.3 and 6.x before 6.0.3. Decompression is not bounded, so an attacker can supply a jar or zip containing an entry that is small when compressed but inflates to hundreds of megabytes. Reading that resource through Resource.load(), Resource.open() or getContentAsString() exhausts memory and crashes the scanning JVM with an OutOfMemoryError. The record gives a CVSS score of 5.9 and states the issue is not in the CISA known exploited list. Teams that run ClassGraph to scan untrusted archives should plan to upgrade to a fixed release.
AI summary · verify against the vendor advisory
Description
ClassGraph before 4.8.201, 5.x before 5.0.3, and 6.x before 6.0.3 contains a denial of service vulnerability that allows attackers to exhaust memory by supplying archives with unbounded deflated entries. Attackers can provide a crafted jar or zip whose small entry inflates to hundreds of megabytes when read via Resource.load(), Resource.open(), or getContentAsString(), crashing the scanning JVM with an OutOfMemoryError.
Text from the CVE.org record.
Recommendation
classgraph
- If you run 6.0.xupdate to 6.0.3 or laterPatch update: breaking changes are unlikely
- If you run 5.0.xupdate to 5.0.3 or laterPatch update: breaking changes are unlikely
- If you run a version before 4.8.201update to 4.8.201 or later
classgraph classgraph-vfs
- If you run 6.0.xupdate to 6.0.3 or laterPatch update: breaking changes are unlikely
- If you run 5.0.xupdate to 5.0.3 or laterPatch update: breaking changes are unlikely
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
classgraph
Affected versions Fixed in from 6.0.0 to before 6.0.3 6.0.3 from 5.0.0 to before 5.0.3 5.0.3 before 4.8.201 4.8.201 classgraph classgraph-vfs
Affected versions Fixed in from 6.0.0 to before 6.0.3 6.0.3 from 5.0.0 to before 5.0.3 5.0.3
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.