The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-47621

CVE-2021-47621: ClassGraph XXE Vulnerability

CVE-2021-47621 is an XML External Entity (XXE) vulnerability in ClassGraph before version 4.8.112 that allows attackers to exploit XML parsing weaknesses. This article covers the technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2021-47621 Overview

ClassGraph before version 4.8.112 was vulnerable to XML eXternal Entity (XXE) attacks. This vulnerability allows attackers to exploit the XML parsing functionality within the ClassGraph library, potentially enabling them to read arbitrary files from the server, perform server-side request forgery (SSRF), or cause denial of service through entity expansion attacks.

Critical Impact

An unauthenticated attacker can exploit this XXE vulnerability over the network to access sensitive information such as configuration files, credentials, and other confidential data stored on the server.

Affected Products

  • ClassGraph versions prior to 4.8.112
  • Applications using vulnerable ClassGraph library as a dependency
  • Corda Enterprise (addressed in version 4.8)

Discovery Timeline

  • 2024-06-21 - CVE-2021-47621 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-47621

Vulnerability Analysis

This vulnerability is classified as CWE-611 (Improper Restriction of XML External Entity Reference). The ClassGraph library, which is widely used for classpath scanning and runtime class introspection in Java applications, failed to properly configure its XML parser to disable external entity processing.

When ClassGraph processes XML content (such as module descriptors or configuration files), an attacker can inject malicious XML payloads containing external entity declarations. These entities can reference local files on the server's filesystem or external URLs, allowing the attacker to exfiltrate sensitive data or probe internal network resources.

The vulnerability requires no authentication and can be exploited remotely over the network. Successful exploitation results in confidentiality breaches where attackers can read arbitrary files accessible by the application process.

Root Cause

The root cause of this vulnerability lies in the XML parser configuration within ClassGraph. The library did not properly disable external entity processing and DTD (Document Type Definition) features when parsing XML documents. This oversight allowed malicious XML content with external entity references to be processed, enabling XXE attacks.

Secure XML parsing requires explicitly disabling features such as FEATURE_SECURE_PROCESSING, external general entities, external parameter entities, and DTD processing to prevent XXE vulnerabilities.

Attack Vector

The attack vector for this vulnerability is network-based, requiring no user interaction or special privileges. An attacker can craft malicious XML content containing external entity declarations and submit it to an application using a vulnerable version of ClassGraph.

When the vulnerable application processes this malicious XML, the parser resolves the external entity references, which can point to local files (using file:// protocol) or external URLs (using http:// or https:// protocols). This allows attackers to:

  1. Read sensitive local files such as /etc/passwd, application configuration files, or private keys
  2. Perform SSRF attacks against internal services
  3. Cause denial of service through billion laughs attacks or external resource exhaustion

The vulnerability mechanism involves crafted XML payloads with DOCTYPE declarations containing ENTITY definitions that reference external resources. When the vulnerable XML parser processes these payloads, it resolves the entity references, potentially exposing sensitive data to the attacker. For detailed technical implementation, refer to the GitHub Pull Request Discussion.

Detection Methods for CVE-2021-47621

Indicators of Compromise

  • Unusual file access patterns in application logs, particularly attempts to read sensitive system files like /etc/passwd or application configuration files
  • Outbound HTTP/HTTPS requests from the application to unexpected external destinations
  • XML parsing errors or exceptions related to external entity resolution in application logs
  • Network traffic containing XML payloads with DOCTYPE declarations and ENTITY definitions

Detection Strategies

  • Implement dependency scanning tools to identify applications using ClassGraph versions prior to 4.8.112
  • Monitor application logs for XML parsing exceptions or unusual file access attempts
  • Deploy network intrusion detection systems (IDS) with signatures for XXE attack payloads
  • Use Web Application Firewalls (WAF) with rules to detect and block malicious XML content containing external entity declarations

Monitoring Recommendations

  • Enable verbose logging for XML parsing operations to capture potential exploitation attempts
  • Monitor outbound network connections from application servers for SSRF indicators
  • Implement file integrity monitoring on sensitive configuration files
  • Set up alerts for unexpected file read operations by the application process

How to Mitigate CVE-2021-47621

Immediate Actions Required

  • Upgrade ClassGraph to version 4.8.112 or later immediately
  • Audit all applications in your environment that depend on ClassGraph library
  • Review dependency trees to identify transitive dependencies on vulnerable ClassGraph versions
  • Implement input validation to reject XML content with DOCTYPE declarations if not required by the application

Patch Information

The vulnerability was fixed in ClassGraph version 4.8.112. The security patch properly configures the XML parser to disable external entity processing and DTD features. The fix can be reviewed in the GitHub Commit Overview and the ClassGraph 4.8.112 Release.

For Corda Enterprise users, upgrade to version 4.8 or later as documented in the Corda 4.8 Release Notes.

Workarounds

  • If immediate upgrade is not possible, implement WAF rules to filter incoming XML requests containing DOCTYPE or ENTITY declarations
  • Configure network-level controls to restrict outbound connections from application servers
  • Apply principle of least privilege to limit file system access for the application user
  • Consider using an XML firewall or gateway to sanitize XML content before it reaches the application
bash
# Maven dependency update example
# Update pom.xml to use patched ClassGraph version
# Change:
#   <dependency>
#     <groupId>io.github.classgraph</groupId>
#     <artifactId>classgraph</artifactId>
#     <version>4.8.111</version>
#   </dependency>
# To:
#   <dependency>
#     <groupId>io.github.classgraph</groupId>
#     <artifactId>classgraph</artifactId>
#     <version>4.8.112</version>
#   </dependency>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechClassgraph

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-611
  • Technical References
  • Corda 4.8 Release Notes

  • GitHub Commit Overview

  • GitHub Pull Request Discussion

  • ClassGraph 4.8.112 Release
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English