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.
https://github.com/classgraph/classgraph/security/advisories/GHSA-vxq2-2gjm-4369
https://github.com/classgraph/classgraph/releases/tag/classgraph-6.0.3
https://github.com/classgraph/classgraph/releases/tag/classgraph-5.0.3
https://github.com/classgraph/classgraph/releases/tag/classgraph-4.8.201
https://github.com/classgraph/classgraph/commit/288bc814ad9db7e66bd5541ced212bdadf12ed22
https://github.com/classgraph/classgraph/commit/2833ac8467639519a5db2d34d4bd1d95645a9dc7
https://github.com/classgraph/classgraph/commit/114e5fcdce78234edc110737552aa2937264d33e