ClassGraph denial of service in Resource.load() decompression
Affects ClassGraph before 4.8.201, 5.x before 5.0.3, and 6.x before 6.0.3, plus classgraph-vfs 5.0.0 to 5.0.2 and 6.0.0 to 6.0.2. Fixed in 4.8.201, 5.0.3, and 6.0.3.
- Exploited
- No known exploitation
- Fix
- Fixed in io.github.classgraph:classgraph 4.8.201, 5.0.3, 6.0.3 · io.github.classgraph:classgraph-vfs 5.0.3, 6.0.3
- Who is exposed
- Not reported
Summary
ClassGraph, including its classgraph-vfs product, has a denial of service flaw that lets a remote attacker, without logging in or any user action, supply a crafted jar or zip file. When a small compressed entry in that file is read through Resource.load(), Resource.open(), or getContentAsString(), it inflates to hundreds of megabytes, exhausting memory and crashing the scanning JVM with an OutOfMemoryError.
Written by a model
Original 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.
Who should check
Teams running classgraph or classgraph-vfs 4.8.200 or earlier, 5.0.0 to 5.0.2, or 6.0.0 to 6.0.2 (Maven) that scan jars or zips from less-trusted sources such as plugins or uploaded artifacts.
“Affecting classgraph < 4.8.201”
What to do
Upgrade to a fixed version: io.github.classgraph:classgraph 4.8.201, 5.0.3, 6.0.3 · io.github.classgraph:classgraph-vfs 5.0.3, 6.0.3.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-145564 (ClassGraph before 4.8.201, 5.0.3, and 6.0.3 DoS via Resource.load() Decompression), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-145564 (entry last updated 2026-12-05):
Affected:
- Maven package io.github.classgraph:classgraph: fixed in 4.8.201; from 5.0.0, fixed in 5.0.3; from 6.0.0, fixed in 6.0.3
- Maven package io.github.classgraph:classgraph-vfs: from 5.0.0, fixed in 5.0.3; from 6.0.0, fixed in 6.0.3
Fixed versions: 4.8.201, 5.0.3, 6.0.3.
Conditions (all must be true for the bug to be hit):
- Affected ClassGraph versions: before 4.8.201, 5.x before 5.0.3, and 6.x before 6.0.3 (classgraph-vfs 5.0.0 to 5.0.2 and 6.0.0 to 6.0.2 included). (source: https://www.vulncheck.com/advisories/classgraph-before-4.8.201-5.0.3-and-6.0.3-dos-via-resource-load-decompression)
- The vulnerable read is through Resource.load(), Resource.open() or getContentAsString() on a scanned jar or zip entry. (source: https://www.vulncheck.com/advisories/classgraph-before-4.8.201-5.0.3-and-6.0.3-dos-via-resource-load-decompression)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-145564 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-145564 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (Maven): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/classgraph/classgraph/security/advisories/GHSA-vxq2-2gjm-4369
- https://github.com/classgraph/classgraph/commit/288bc814ad9db7e66bd5541ced212bdadf12ed22
- https://github.com/classgraph/classgraph/commit/2833ac8467639519a5db2d34d4bd1d95645a9dc7
- https://github.com/classgraph/classgraph/commit/114e5fcdce78234edc110737552aa2937264d33e
- 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/blob/classgraph-6.0.2/classgraph-vfs/src/main/java/io/github/classgraph/vfs/internal/zip/FastZipEntry.java#L356-L375
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-145564
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-145564"}.Affected versions
- io.github.classgraph:classgraphfixed in 4.8.201; From 5.0.0 · fixed in 5.0.3; From 6.0.0 · fixed in 6.0.3No fix released. The advisory names 4.8.201 and 5.0.3 and 6.0.3 as the fix, which the registry doesn't have yet. The latest release, 6.0.2, is still affected.
- io.github.classgraph:classgraph-vfsFrom 5.0.0 · fixed in 5.0.3; From 6.0.0 · fixed in 6.0.3
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure17/25No login or user action needed, reachable over the network without a login · Unknown: Advisories don't say whether default setups are affected
- Reach10/20Affects Maven packages
- Severity8.2/10CVSS 8.2
- No patch0/5No signal
What would change the score
- Would score about 80 if added to CISA KEV
- Would score about 75 if CISA's SSVC rates exploitation active
- Would score about 40 if advisories confirm default setups are exposed
Impact
- Widely used49 packages depend on io.github.classgraph:classgraph. deps.dev
Timeline
- CVE published
- First seen by cve.now
Evidence 11
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · classgraph/classgraph · Advisory GHSA-vxq2-2gjm-4369 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-145564 |
| Record | NVD · CVE-2026-145564 |
| Other links 8 | |
| Patch | GitHub · classgraph/classgraph · Commit 288bc814 |
| Patch | GitHub · classgraph/classgraph · Commit 2833ac84 |
| Patch | GitHub · classgraph/classgraph · Commit 114e5fcd |
| Repository | GitHub · classgraph/classgraph · Release classgraph-6.0.3 |
| Repository | GitHub · classgraph/classgraph · Release classgraph-5.0.3 |
| Repository | GitHub · classgraph/classgraph · Release classgraph-4.8.201 |
| Repository | GitHub · classgraph/classgraph · classgraph-vfs/src/main/java/io/github/classgraph/vfs/internal/zip/FastZipEntry.java · L356-L375 |
| Link | vulncheck.com · advisories/classgraph-before-4.8.201-5.0.3-and-6.0.3-dos-via-resource-load-decompression |
Questions about CVE-2026-145564
Is CVE-2026-145564 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
A crafted jar or zip with a small deflated entry can exhaust memory and crash the scanning JVM with an OutOfMemoryError.
Source: vulncheck.com, github.com
Which versions are affected by CVE-2026-145564?
io.github.classgraph:classgraph (Maven): before 4.8.201; from 5.0.0 before 5.0.3; from 6.0.0 before 6.0.3. io.github.classgraph:classgraph-vfs (Maven): from 5.0.0 before 5.0.3; from 6.0.0 before 6.0.3.
Source: cve.now feed data
Am I affected, and how do I check?
Affects ClassGraph before 4.8.201, 5.x before 5.0.3, and 6.x before 6.0.3, and classgraph-vfs 5.0.0 to 5.0.2 and 6.0.0 to 6.0.2. The vulnerable read is through Resource.load(), Resource.open() or getContentAsString() on a scanned jar or zip entry. Check the ClassGraph version in the project's build dependencies.
Source: vulncheck.com, github.com
How do I fix CVE-2026-145564?
Upgrade ClassGraph to 4.8.201, 5.0.3, or 6.0.3 for the release line in use, and upgrade classgraph-vfs to 5.0.3 or 6.0.3.
Source: vulncheck.com, github.com
Related
- CVE-2021-47621ClassGraph before 4.8.112 was not resistant to XML eXternal Entity (XXE) attacks.
- CVE-2026-134813Faye websocket-driver 0.5.0 before 0.8.0 Decompression Bomb via permessage-deflate
- CVE-2026-134830Casdoor before 4.27.1 Denial of Service via SAML Message Decompression
- CVE-2026-134341actix-http 3.0.0 before 3.20.3 Denial of Service via Large-Window Brotli Decompression
- CVE-2026-142228Encode httpx through 0.29.0 Memory Exhaustion via Unbounded Response Decompression
- CVE-2026-142242JJWT through 0.13.0 Memory Exhaustion via Unbounded JWE Payload Decompression
No corrections so far. Something wrong on this page? Report an error.