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-2025-54385

CVE-2025-54385: XWiki Platform SQL Injection Vulnerability

CVE-2025-54385 is a SQL injection flaw in XWiki Platform allowing attackers to execute arbitrary SQL queries through unsanitized HQL functions. This article covers technical details, affected versions, and mitigation.

Published: April 1, 2026

CVE-2025-54385 Overview

CVE-2025-54385 is a SQL Injection vulnerability affecting XWiki Platform, a generic wiki platform offering runtime services for applications built on top of it. The vulnerability allows authenticated attackers to execute arbitrary SQL queries on Oracle database backends by exploiting insufficient input sanitization in the XWiki#searchDocuments APIs.

The vulnerability exists because the XWiki#searchDocuments APIs pass queries directly to Hibernate without proper sanitization. Even when these APIs enforce a specific SELECT clause, attackers can still inject malicious code through HQL's native function support in other parts of the query, such as the WHERE clause. This enables exploitation of Oracle-specific functions like DBMS_XMLGEN or DBMS_XMLQUERY to execute arbitrary SQL statements.

Critical Impact

Authenticated attackers with network access can execute arbitrary SQL queries against Oracle databases, potentially leading to complete database compromise, data exfiltration, or data manipulation.

Affected Products

  • XWiki Platform versions 17.0.0-rc1 through 17.2.2
  • XWiki Platform versions 16.10.5 and below
  • XWiki Platform deployments using Oracle database backend

Discovery Timeline

  • 2025-07-26 - CVE-2025-54385 published to NVD
  • 2025-09-03 - Last updated in NVD database

Technical Details for CVE-2025-54385

Vulnerability Analysis

This vulnerability is classified as CWE-20 (Improper Input Validation). The core issue lies in how XWiki Platform handles user-supplied input when constructing database queries through its searchDocuments API.

The XWiki#searchDocuments APIs are designed to allow users to search for documents within the wiki. However, these APIs fail to adequately sanitize input before passing it to Hibernate for query execution. While the APIs attempt to enforce specific SELECT clauses to limit query scope, this protection can be bypassed.

The critical weakness is that HQL (Hibernate Query Language) supports native database functions. Attackers can leverage this feature to inject Oracle-specific functions like DBMS_XMLGEN or DBMS_XMLQUERY into other parts of the query, particularly the WHERE clause. These Oracle PL/SQL packages can be weaponized to execute arbitrary SQL statements, effectively bypassing the intended query restrictions.

Root Cause

The root cause is insufficient input validation and sanitization in the XWiki#searchDocuments APIs. The application trusts user-controlled input to construct HQL queries without proper escaping or parameterization of all query components. While SELECT clause restrictions are implemented, the WHERE clause and other query portions remain vulnerable to injection attacks that leverage HQL's native function call capabilities.

Attack Vector

The attack is network-based and requires authenticated access to the XWiki platform. An attacker with valid credentials can craft malicious search queries containing Oracle native function calls. When these queries are processed by the vulnerable searchDocuments APIs, the injected SQL code is executed directly against the Oracle database.

The exploitation path involves:

  1. Authenticating to the XWiki platform with any valid user account
  2. Crafting a malicious search query that includes Oracle native functions in the WHERE clause
  3. Submitting the query through the XWiki#searchDocuments API
  4. The injected functions execute arbitrary SQL commands with the database privileges of the application's database user

The vulnerability is particularly dangerous because DBMS_XMLGEN and DBMS_XMLQUERY can be used to construct and execute arbitrary SQL statements, enabling full read/write access to the database depending on configured permissions.

Detection Methods for CVE-2025-54385

Indicators of Compromise

  • Unusual database queries containing DBMS_XMLGEN or DBMS_XMLQUERY function calls in application logs
  • Unexpected access patterns or data retrieval operations in Oracle audit logs
  • Error messages in XWiki logs indicating malformed or suspicious search queries
  • Evidence of data exfiltration or unauthorized database modifications

Detection Strategies

  • Monitor application logs for search queries containing Oracle-specific function names such as DBMS_XMLGEN, DBMS_XMLQUERY, or similar PL/SQL packages
  • Implement database activity monitoring to detect unusual query patterns or privilege escalation attempts
  • Review Oracle audit logs for queries originating from the XWiki application that contain native function calls outside normal application behavior
  • Deploy web application firewall (WAF) rules to detect SQL injection patterns targeting the search functionality

Monitoring Recommendations

  • Enable verbose logging for the XWiki#searchDocuments API endpoints to capture all query parameters
  • Configure Oracle database auditing to log all DDL and DML operations from the XWiki database user
  • Set up alerts for queries containing potentially dangerous Oracle packages or functions
  • Monitor for unusual data access patterns that may indicate data exfiltration attempts

How to Mitigate CVE-2025-54385

Immediate Actions Required

  • Upgrade XWiki Platform to version 16.10.6 or 17.3.0-rc-1 immediately
  • If immediate upgrade is not possible, restrict access to the searchDocuments API functionality
  • Review database user permissions and apply principle of least privilege to the XWiki database account
  • Implement network segmentation to limit direct database access from untrusted networks

Patch Information

XWiki has released security patches addressing this vulnerability. The fixes are available in versions 16.10.6 and 17.3.0-rc-1. The patches implement proper input sanitization for the searchDocuments APIs to prevent SQL injection through HQL native function calls.

Relevant security resources:

  • GitHub Security Advisory GHSA-p9qm-p942-q3w5
  • XWiki Issue Tracker XWIKI-22728
  • Security Patch Commit 7313dc9
  • Security Patch Commit 7c4087d
  • XWiki 16.10.6 Release Notes

Workarounds

  • Restrict access to the XWiki#searchDocuments API to trusted users only until patches can be applied
  • If using Oracle database, consider revoking execute privileges on DBMS_XMLGEN and DBMS_XMLQUERY packages from the XWiki database user
  • Implement a web application firewall with rules to block requests containing Oracle-specific function names in search parameters
  • Consider temporarily switching to a non-Oracle database backend if feasible until the patch is deployed
bash
# Revoke dangerous Oracle packages from XWiki database user (Oracle DBA)
REVOKE EXECUTE ON SYS.DBMS_XMLGEN FROM xwiki_user;
REVOKE EXECUTE ON SYS.DBMS_XMLQUERY FROM xwiki_user;

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechXwiki

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.49%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:H/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-20
  • Technical References
  • Oracle Database Documentation

  • XWiki Release Notes
  • Vendor Resources
  • XWiki Commit Update

  • XWiki Commit Update

  • GitHub Security Advisory

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

  • CVE-2024-56158: XWiki Platform SQL Injection Vulnerability

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

  • CVE-2025-32429: 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