WaratekVRT Sign in

CVE-2021-47621

Severity7.5 High CVSS 3.1
Fixed in4.8.112
WeaknessXML external entity (XXE) (CWE-611)
Published21 Jun 2024
Updated17 Jun 2026

Description

ClassGraph before 4.8.112 was not resistant to XML eXternal Entity (XXE) attacks.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 2 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 0.56% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

  • Protection full XXE
  • Action available security rule
  • Review automated Inferred
  • Record active
Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR xxe security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-611: XML External Entity Reference.
Candidate fix https://github.com/classgraph/classgraph/commit/681362ad6b0b9d9abaffb2e07099ce54d7a41fa3 : a commit: the change itself

How to mitigate CVE-2021-47621

Upgrade the affected software to 4.8.112 or later. Until you can, Waratek RASP blocks exploitation with its XXE rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
io.github.classgraph:classgraph 0 4.8.112 unbounded

Products and versions

1 product, 1 version entry
SourceVendorProductSchemeAffected versions
osv io.github.classgraph classgraph generic < 4.8.112

References

URLTags
https://github.com/classgraph/classgraph/commit/681362ad6b0b9d9abaffb2e07099ce54d7a41fa3 commit
https://github.com/classgraph/classgraph/pull/539 WEB
https://docs.r3.com/en/platform/corda/4.8/enterprise/release-notes-enterprise.html WEB
https://github.com/classgraph/classgraph PACKAGE
https://github.com/classgraph/classgraph/releases/tag/classgraph-4.8.112 WEB

Timeline

Published2024-06-21By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.