CVE-2021-47621 ClassGraph XML External Entity Reference

High 7.5 Published Updated

ClassGraph library is vulnerable to XML External Entity attacks, allowing attackers to read files or cause denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-47621?

CVE-2021-47621 is a high-severity vulnerability in n/a, published on 21 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-611

Which versions are affected by CVE-2021-47621?

2 open source packages ship an affected version, including io.github.classgraph:classgraph.

PackageAffectedFixed in
io.github.classgraph:classgraph MavenAll versions4.8.112
io.github.classgraph:classgraph MavenAll versions4.8.112

How do I fix CVE-2021-47621?

Upgrade io.github.classgraph:classgraph to 4.8.112 or later.

Is CVE-2021-47621 being exploited?

There is no known exploitation of CVE-2021-47621 in the wild and no public exploit code.

Sources

Also known as ECHO-d016-3169-4d32, GHSA-v2xm-76pq-phcf, RHLW-2026-27d595c7dc400686, RHLW-2026-9bd677f780e42d38, ROOT-APP-MAVEN-CVE-2021-47621.

Is CVE-2021-47621 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free