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-56158

CVE-2024-56158: XWiki Platform SQL Injection Vulnerability

CVE-2024-56158 is a SQL injection vulnerability in XWiki Platform that allows attackers to execute arbitrary SQL queries via Oracle functions. This article covers the technical details, affected versions, and patches.

Published: April 8, 2026

CVE-2024-56158 Overview

CVE-2024-56158 is a critical SQL Injection vulnerability in XWiki, a generic wiki platform. The vulnerability allows attackers to execute arbitrary SQL queries on Oracle databases by exploiting Oracle-specific functions such as DBMS_XMLGEN or DBMS_XMLQUERY. The XWiki query validator fails to properly sanitize these functions when used within simple SELECT statements, and Hibernate permits the use of any native function in HQL queries, creating a dangerous attack surface.

Critical Impact

Unauthenticated attackers can execute arbitrary SQL queries on Oracle databases, potentially leading to complete database compromise, data exfiltration, and unauthorized data manipulation.

Affected Products

  • XWiki versions prior to 15.10.16
  • XWiki versions 16.0.0 through 16.4.6
  • XWiki versions 16.5.0 through 16.10.1

Discovery Timeline

  • 2025-06-12 - CVE-2024-56158 published to NVD
  • 2026-01-12 - Last updated in NVD database

Technical Details for CVE-2024-56158

Vulnerability Analysis

This SQL Injection vulnerability (CWE-89) arises from insufficient input validation in XWiki's query handling mechanism when interacting with Oracle databases. The platform uses Hibernate ORM for database operations, which supports native SQL functions within HQL (Hibernate Query Language) queries. Oracle databases provide powerful XML generation functions like DBMS_XMLGEN.GETXML() and DBMS_XMLQUERY.GETXML() that can be leveraged to construct and execute arbitrary SQL statements.

The XWiki query validator is designed to sanitize user-controlled input within queries but fails to account for Oracle-specific functions that can encapsulate and execute arbitrary SQL code. Since these functions are valid within HQL syntax and Hibernate does not restrict their usage, attackers can craft malicious queries that bypass the validation layer entirely.

Root Cause

The root cause of this vulnerability is the inadequate sanitization of Oracle-specific database functions within XWiki's query validation mechanism. The validator treats these functions as legitimate query components rather than potential injection vectors. Combined with Hibernate's permissive handling of native database functions in HQL queries, this creates a pathway for attackers to inject and execute arbitrary SQL statements.

Attack Vector

This vulnerability is exploitable over the network without requiring authentication or user interaction. An attacker can send specially crafted requests containing malicious HQL queries that embed Oracle functions like DBMS_XMLGEN.GETXML(). When the XWiki application processes these queries, the embedded SQL commands are executed directly against the Oracle database backend.

The attack flow involves crafting an HQL query that appears valid to XWiki's validator but contains Oracle functions capable of executing arbitrary SQL. For example, DBMS_XMLGEN.GETXML() accepts a SQL query string as a parameter and can be used to execute SELECT, INSERT, UPDATE, or DELETE operations, potentially compromising the entire database.

Detection Methods for CVE-2024-56158

Indicators of Compromise

  • HTTP requests containing DBMS_XMLGEN, DBMS_XMLQUERY, or similar Oracle-specific function names in query parameters
  • Unusual database query patterns involving XML generation functions in application logs
  • Unexpected data access or modification patterns in Oracle database audit logs
  • Error messages referencing Oracle XML-related PL/SQL packages in application responses

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block requests containing Oracle-specific function names like DBMS_XMLGEN and DBMS_XMLQUERY
  • Enable Oracle database auditing for PL/SQL package executions, particularly for XML-related packages
  • Monitor application logs for SQL-related error messages that may indicate injection attempts
  • Deploy runtime application self-protection (RASP) solutions to detect anomalous query patterns

Monitoring Recommendations

  • Configure alerting on database audit logs for execution of DBMS_XMLGEN or DBMS_XMLQUERY functions from the XWiki application context
  • Establish baseline query patterns for XWiki and alert on deviations that include unusual function calls
  • Monitor network traffic for requests with abnormally long query strings or encoded SQL syntax
  • Review XWiki access logs regularly for suspicious patterns or unauthorized access attempts

How to Mitigate CVE-2024-56158

Immediate Actions Required

  • Upgrade XWiki to version 16.10.2, 16.4.7, or 15.10.16 immediately
  • If immediate patching is not possible, restrict network access to the XWiki instance using firewall rules
  • Implement WAF rules to block requests containing Oracle-specific function names as an interim measure
  • Review database access logs for signs of prior exploitation

Patch Information

XWiki has released patched versions that address this vulnerability. Organizations should upgrade to one of the following versions based on their deployment:

  • Version 16.10.2 for users on the 16.10.x branch
  • Version 16.4.7 for users on the 16.4.x branch
  • Version 15.10.16 for users on the 15.10.x LTS branch

The fix is available in commit ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d. For detailed information, refer to the GitHub Security Advisory and the XWiki Issue Tracker.

Workarounds

  • Deploy a reverse proxy or WAF configured to filter requests containing DBMS_XMLGEN, DBMS_XMLQUERY, and similar Oracle function names
  • If using Oracle, consider restricting the privileges of the database user used by XWiki to limit the impact of potential SQL injection
  • Implement network segmentation to isolate the XWiki application and limit lateral movement if compromised
  • Enable Oracle Database Vault or similar access control mechanisms to restrict execution of sensitive PL/SQL packages
bash
# Example WAF rule for blocking Oracle function injection attempts
# ModSecurity rule to detect DBMS_XMLGEN/DBMS_XMLQUERY in requests
SecRule REQUEST_URI|ARGS|ARGS_NAMES|REQUEST_BODY "@rx (?i)(DBMS_XMLGEN|DBMS_XMLQUERY)" \
    "id:100001,phase:2,deny,status:403,msg:'Potential Oracle SQL Injection Attempt'"

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechXwiki

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.71%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Commit Details
  • Vendor Resources
  • GitHub Security Advisory

  • XWiki Issue Tracking
  • Related CVEs
  • CVE-2025-65091: XWiki Full Calendar Macro SQLi Vulnerability

  • CVE-2025-52472: XWiki Platform HQL Injection Vulnerability

  • CVE-2025-32429: XWiki Platform SQL Injection Vulnerability

  • CVE-2025-54385: XWiki Platform SQL Injection 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