Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-55875

CVE-2024-55875: http4k XXE Vulnerability in Kotlin Toolkit

CVE-2024-55875 is an XML External Entity injection vulnerability in http4k, a Kotlin HTTP toolkit. It allows attackers to read sensitive files, trigger SSRF, or execute code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 8, 2026

CVE-2024-55875 Overview

CVE-2024-55875 is an XML External Entity (XXE) Injection vulnerability in http4k, a functional toolkit for Kotlin HTTP applications. Prior to version 5.41.0.0, http4k improperly handles malicious XML content within HTTP requests, enabling attackers to exploit XXE vulnerabilities. This security flaw allows threat actors to read sensitive local files from the server, trigger Server-Side Request Forgery (SSRF) attacks, and potentially achieve remote code execution under certain conditions.

Critical Impact

This XXE vulnerability allows unauthenticated remote attackers to read arbitrary local files, perform SSRF attacks, and potentially execute code on vulnerable http4k servers processing untrusted XML input.

Affected Products

  • http4k versions prior to 5.41.0.0
  • Applications using http4k's XML parsing functionality
  • Kotlin HTTP applications built with vulnerable http4k versions

Discovery Timeline

  • 2024-12-12 - CVE-2024-55875 published to NVD
  • 2024-12-13 - Last updated in NVD database

Technical Details for CVE-2024-55875

Vulnerability Analysis

The vulnerability exists in http4k's XML parsing module, specifically in the XML format handling code. When processing XML content from incoming HTTP requests, the library fails to properly disable external entity processing in the underlying XML parser configuration. This allows attackers to craft malicious XML payloads containing external entity declarations that reference local files, internal network resources, or other sensitive data sources.

The vulnerable code path is located in the Xml.kt file within the core/format/xml module. When XML content is parsed without proper security configurations, the DocumentBuilder processes DTD declarations and resolves external entities, leading to information disclosure and potential further exploitation.

Root Cause

The root cause of this vulnerability is the lack of secure XML parser configuration in http4k's XML handling code. The XML parser was not configured to disable DOCTYPE declarations, external general entities, external parameter entities, or external DTD loading. This insecure default configuration allows XML External Entity attacks when processing untrusted XML input. The fix applied in version 5.41.0.0 adds proper security features to the DocumentBuilderFactory to prevent XXE attacks.

Attack Vector

This vulnerability is exploitable over the network without authentication. An attacker can send a specially crafted HTTP request containing malicious XML content to any endpoint that processes XML using the vulnerable http4k library. The attack requires no user interaction and can be executed with low complexity.

Typical XXE attack scenarios include:

  1. Local File Disclosure: Attackers define external entities pointing to local files like /etc/passwd or application configuration files, which are then included in the XML response or error messages.

  2. SSRF Attacks: External entities can reference internal network URLs, allowing attackers to probe internal services, access metadata endpoints, or pivot to other systems.

  3. Remote Code Execution: In certain configurations where the server has access to specific protocols or vulnerable dependencies, XXE can be chained with other techniques to achieve code execution.

The vulnerability mechanism involves crafting XML payloads with DOCTYPE declarations that define external entities. When the vulnerable parser processes such content, it resolves these entities and includes their contents in the document. For detailed technical information, see the GitHub Security Advisory GHSA-7mj5-hjjj-8rgw.

Detection Methods for CVE-2024-55875

Indicators of Compromise

  • Unusual HTTP requests containing XML payloads with DOCTYPE declarations and ENTITY definitions
  • Web server logs showing requests with <!DOCTYPE and <!ENTITY patterns in request bodies
  • Access attempts to sensitive local files like /etc/passwd, /etc/shadow, or application configuration files from the web application process
  • Outbound connections from web application servers to unexpected internal or external hosts

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block XML payloads containing DOCTYPE declarations and external entity references
  • Monitor application logs for XML parsing errors or unusual file access patterns from the http4k application
  • Deploy network monitoring to detect SSRF attempts originating from application servers to internal infrastructure
  • Use SentinelOne Singularity platform to detect and alert on suspicious file access or network connections from Java/Kotlin applications

Monitoring Recommendations

  • Enable verbose logging for XML parsing operations in http4k applications
  • Configure alerting for any HTTP requests containing <!DOCTYPE or <!ENTITY strings in request bodies
  • Monitor for abnormal outbound network traffic from application servers, particularly to internal IP ranges or cloud metadata endpoints
  • Implement file integrity monitoring on sensitive configuration files that could be targeted by XXE attacks

How to Mitigate CVE-2024-55875

Immediate Actions Required

  • Upgrade http4k to version 5.41.0.0 or later immediately
  • Review application code for any custom XML parsing that may bypass http4k's updated security configurations
  • Implement input validation to reject XML content containing DOCTYPE declarations at the application perimeter
  • Deploy WAF rules to block XXE attack patterns while patch deployment is in progress

Patch Information

The http4k maintainers released version 5.41.0.0 which contains the security fix for this vulnerability. The patch modifies the XML parser configuration to disable external entity processing. The fix can be reviewed in the GitHub commit. Organizations should upgrade to this version or later by updating their dependency management configuration (Maven, Gradle, etc.).

For reference, the vulnerable code location is in the Xml.kt format code.

Workarounds

  • If immediate upgrade is not possible, implement a request filter that strips or rejects XML content containing DOCTYPE declarations before it reaches the http4k XML parser
  • Deploy a reverse proxy or WAF in front of vulnerable applications to filter malicious XML payloads
  • Disable XML processing endpoints temporarily if they are not business-critical
  • Implement network segmentation to limit the impact of potential SSRF attacks originating from vulnerable servers
bash
# Gradle dependency update example
# In build.gradle.kts, update http4k dependency:
# implementation("org.http4k:http4k-core:5.41.0.0")
# implementation("org.http4k:http4k-format-xml:5.41.0.0")

# Verify installed version after update
./gradlew dependencies | grep http4k

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

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechHttp4k

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability5.46%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-200
  • Technical References
  • GitHub Xml Format Code

  • GitHub Commit Update

  • GitHub Security Advisory GHSA-7mj5-hjjj-8rgw
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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