A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2024-38374

CVE-2024-38374: CycloneDX Core Java XXE Vulnerability

CVE-2024-38374 is an XML External Entity (XXE) injection flaw in CycloneDX Core Java that occurs during SBOM deserialization. This article covers the technical details, affected versions, security impact, and mitigation.

Published: June 2, 2026

CVE-2024-38374 Overview

CVE-2024-38374 is an XML External Entity (XXE) injection vulnerability in cyclonedx-core-java, the core module of the CycloneDX project. The library provides a model representation of Software Bill of Materials (SBOM) documents along with utilities to create, validate, and parse them. Before deserializing a CycloneDX BOM in XML format, the library uses XPath expressions to determine the schema version of the document. The underlying DocumentBuilderFactory was not configured to disable external entity resolution, allowing attacker-controlled XML input to trigger XXE. The issue is fixed in cyclonedx-core-java version 9.0.4 and is categorized under CWE-611.

Critical Impact

An attacker who can supply XML SBOM input to a vulnerable consumer can exfiltrate local files and trigger server-side request forgery through external entity resolution.

Affected Products

  • CycloneDX cyclonedx-core-java versions prior to 9.0.4
  • Java applications, build tools, and SBOM processors that depend on cyclonedx-core-java for XML BOM parsing
  • CI/CD and supply chain tooling that ingests externally provided CycloneDX XML SBOMs

Discovery Timeline

  • 2024-06-28 - CVE-2024-38374 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2024-38374

Vulnerability Analysis

The vulnerability resides in the XML parsing path used by cyclonedx-core-java to determine an incoming BOM's schema version. Before full deserialization, the library evaluates XPath expressions against the input document. To do this, it constructs a DocumentBuilderFactory instance without disabling external entity processing or DTD resolution. Any caller that passes attacker-influenced XML through this code path is exposed to XXE injection.

XXE allows the attacker to declare external entities in a DTD and reference them in document content. When parsed, the XML processor resolves those entities, reading files from the host or fetching URLs from the network. The result is unauthorized disclosure of local file content and outbound requests originating from the affected service.

Root Cause

The root cause is insecure default configuration of the DocumentBuilderFactory. Secure XML parsing requires disabling DTDs, disabling external general and parameter entities, and setting XMLConstants.FEATURE_SECURE_PROCESSING. None of these protections were applied in the schema-detection path, leaving entity resolution enabled.

Attack Vector

Exploitation is network-reachable and does not require authentication or user interaction. An attacker submits a crafted CycloneDX XML BOM containing a malicious external entity declaration. When the application calls into cyclonedx-core-java to parse or validate the SBOM, the underlying parser resolves the entity. The attacker reads files accessible to the JVM process or forces it to issue HTTP requests to internal hosts. See the GitHub Security Advisory GHSA-683x-4444-jxh8 for the upstream analysis.

Detection Methods for CVE-2024-38374

Indicators of Compromise

  • CycloneDX XML BOM files containing <!DOCTYPE> declarations or <!ENTITY> definitions referencing file://, http://, or https:// URIs
  • Outbound HTTP, FTP, or DNS connections originating from build agents or SBOM ingestion services to unexpected destinations during SBOM parsing
  • Unexpected reads of sensitive files such as /etc/passwd, ~/.ssh/, or cloud metadata endpoints by Java processes that handle SBOM input

Detection Strategies

  • Inventory Java applications and CI/CD pipelines for transitive dependencies on cyclonedx-core-java below 9.0.4 using dependency scanning.
  • Inspect ingested CycloneDX XML SBOMs for DTD subsets and external entity declarations before they reach the parser.
  • Correlate SBOM parsing events with subsequent outbound network connections from the same process to identify abnormal entity resolution.

Monitoring Recommendations

  • Log and alert on DocumentBuilder and XPath instantiation in SBOM-processing services where DTD handling is not disabled.
  • Monitor egress from build systems and supply-chain services to internal addresses, cloud metadata IPs such as 169.254.169.254, and unknown external hosts.
  • Track version pinning of cyclonedx-core-java across repositories and fail builds that resolve a vulnerable version.

How to Mitigate CVE-2024-38374

Immediate Actions Required

  • Upgrade cyclonedx-core-java to version 9.0.4 or later in all direct and transitive dependency declarations.
  • Rebuild and redeploy any application, plugin, or CLI tool that bundles a vulnerable version of the library.
  • Audit recent SBOM ingestion logs for XML inputs containing DOCTYPE or external entity references.

Patch Information

The fix is delivered in cyclonedx-core-java9.0.4. The maintainers reconfigured the DocumentBuilderFactory used for schema detection to disable DTDs and external entities. Implementation details are available in the upstream GitHub Pull Request #434 and the fix commit.

Workarounds

  • Reject CycloneDX XML SBOMs that contain <!DOCTYPE> declarations at an ingress proxy or pre-parser before they reach the library.
  • Prefer the CycloneDX JSON format over XML for untrusted SBOM input where the consuming application allows it.
  • Run SBOM-processing workloads with restricted egress and minimal file system access to limit the impact of any residual XXE exposure.
bash
# Configuration example: enforce a fixed library version in Maven
mvn dependency:tree | grep cyclonedx-core-java
# Pin the patched version in pom.xml
# <dependency>
#   <groupId>org.cyclonedx</groupId>
#   <artifactId>cyclonedx-core-java</artifactId>
#   <version>9.0.4</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/TechCyclonedx

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.06%

  • 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
  • GitHub Pull Request

  • GitHub Commit Details

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-64518: CycloneDX Core Java XXE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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