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

CVE-2025-52472: XWiki Platform HQL Injection Vulnerability

CVE-2025-52472 is an HQL injection flaw in XWiki Platform affecting the REST search URL via the orderField parameter. Attackers can exploit this to manipulate queries. This article covers technical details, affected versions, and patches.

Published: April 1, 2026

CVE-2025-52472 Overview

CVE-2025-52472 is a critical HQL (Hibernate Query Language) injection vulnerability affecting XWiki Platform, a generic wiki platform offering runtime services for applications built on top of it. The vulnerability exists in the REST search URL functionality, where the orderField parameter is susceptible to injection attacks. This flaw allows unauthenticated remote attackers to manipulate database queries, potentially leading to unauthorized data access, modification, or complete system compromise.

Critical Impact

Unauthenticated attackers can exploit HQL injection via the REST search API to execute arbitrary database queries, potentially extracting sensitive data or compromising the entire XWiki installation.

Affected Products

  • XWiki Platform versions 4.3-milestone-1 through 16.10.8
  • XWiki Platform versions 17.0.0 through 17.4.1
  • XWiki Platform versions 17.5.0-rc-1 (prior to 17.5.0 release)

Discovery Timeline

  • 2025-10-06 - CVE-2025-52472 published to NVD
  • 2025-10-08 - Last updated in NVD database

Technical Details for CVE-2025-52472

Vulnerability Analysis

This vulnerability is classified as CWE-89 (SQL Injection), specifically manifesting as an HQL injection in XWiki Platform's REST search functionality. The flaw exists because user-supplied input through the orderField parameter is incorporated into HQL queries without proper sanitization or parameterization.

The exploitation complexity is nuanced—the attacker-controlled value is inserted twice into the query: once in the field list for the SELECT clause and once in the ORDER BY clause. This dual insertion makes exploitation more challenging but not impossible. An attacker can enclose the portion of the query between the two field references in single quotes to effectively neutralize them, while ensuring the overall query remains syntactically valid with the injected payload appearing twice.

The vulnerability enables network-based attacks without requiring authentication or user interaction, making it particularly dangerous for publicly accessible XWiki installations.

Root Cause

The root cause lies in the improper handling of the orderField parameter in the REST search query execution logic. The HqlQueryUtils.java class and BaseSearchResult.java components failed to validate and sanitize user input before incorporating it into dynamically constructed HQL queries. The lack of input validation allows malicious HQL syntax to be injected and executed against the underlying database.

Attack Vector

The attack vector is network-based, targeting the REST search endpoint. An unauthenticated attacker can craft malicious requests to the REST search URL with a specially constructed orderField parameter value. The payload must be carefully designed to remain valid when inserted at both injection points in the query structure.

The attack flow involves:

  1. Identifying a vulnerable XWiki instance with an exposed REST API
  2. Crafting an HQL injection payload that works with dual insertion points
  3. Sending the malicious request to extract data or manipulate the database
  4. Using single-quote encapsulation to neutralize the query structure between injection points

The security patch addresses this issue by improving query construction in the REST search functionality. The fix involves proper input validation and sanitization in the HQL query utilities:

java
  */
 package com.xpn.xwiki.internal.store.hibernate.query;
 
+import java.util.Set;
 import java.util.StringTokenizer;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;

Source: GitHub Commit Update

The patch also updates the query execution components to use proper parameterization:

java
 import org.xwiki.query.Query;
 import org.xwiki.query.QueryException;
 import org.xwiki.query.QueryFilter;
+import org.xwiki.query.QueryManager;
 import org.xwiki.rest.Relations;
 import org.xwiki.rest.XWikiResource;
 import org.xwiki.rest.internal.ModelFactory;

Source: GitHub Commit Update

Detection Methods for CVE-2025-52472

Indicators of Compromise

  • Unusual REST API search requests containing SQL/HQL syntax characters such as single quotes, semicolons, or UNION keywords in the orderField parameter
  • Database query logs showing malformed or suspicious HQL statements originating from the XWiki REST search endpoint
  • Unexpected data access patterns or bulk data extraction from the XWiki database
  • Web access logs showing repeated requests to REST search endpoints with varying orderField values indicative of injection attempts

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect and block HQL/SQL injection patterns in REST API parameters
  • Implement logging and monitoring on the XWiki REST search endpoint to capture all requests with their full parameter values
  • Configure database query auditing to detect anomalous query patterns or unauthorized data access
  • Use intrusion detection systems (IDS) with signatures for common injection attack patterns

Monitoring Recommendations

  • Enable verbose logging for XWiki REST API endpoints and forward logs to a centralized SIEM solution
  • Monitor database performance metrics for unusual query execution times or resource consumption that may indicate injection exploitation
  • Set up alerts for failed authentication attempts or unexpected error rates from the REST API
  • Implement application-layer monitoring to track request patterns to the search functionality

How to Mitigate CVE-2025-52472

Immediate Actions Required

  • Upgrade XWiki Platform to version 16.10.9, 17.4.2, or 17.5.0 immediately
  • If immediate patching is not possible, consider temporarily disabling or restricting access to the REST search API
  • Review access logs for any signs of exploitation attempts against the REST search endpoint
  • Implement network-level restrictions to limit REST API access to trusted IP addresses

Patch Information

XWiki has released security patches addressing this vulnerability. Users should upgrade to one of the following fixed versions:

  • Version 16.10.9 - For users on the 16.x LTS branch
  • Version 17.4.2 - For users on the 17.4.x release branch
  • Version 17.5.0 - Latest stable release with the fix

Detailed patch information is available in the GitHub Security Advisory and tracked in XWiki Jira Issue XWIKI-23247.

Workarounds

  • No official workarounds are available from the vendor for this vulnerability
  • As a temporary measure, restrict access to the REST API at the network level using firewall rules or reverse proxy configurations
  • Consider implementing a WAF with custom rules to block requests containing suspicious characters in the orderField parameter
  • Monitor and audit all REST API access while awaiting patch deployment
bash
# Example: Restrict REST API access via Apache reverse proxy
<Location "/xwiki/rest/">
    Require ip 10.0.0.0/8
    Require ip 192.168.0.0/16
</Location>

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.23%

  • 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 Update

  • GitHub Commit Update

  • GitHub Security Advisory

  • XWiki Jira Issue XWIKI-23247
  • Related CVEs
  • CVE-2025-65091: XWiki Full Calendar Macro SQLi Vulnerability

  • CVE-2024-56158: XWiki Platform SQL 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