XWiki Platform
CVE-2025-52472
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach REST search endpoint unauthenticated
-
DeliveryCraft orderField HQL injection payload
-
ExploitBalance quotes across double value insertion
-
ExecutionExecute injected HQL via Hibernate
-
ImpactExfiltrate database contents time-based
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation targets the XWiki REST search API (wiki and space search, e.g. /xwiki/rest/wikis/{wiki}/search) via the |
| Impact | This is a genuine high-priority issue for internet-facing XWiki instances, but the raw 9.3 (CVSS 4.0) overstates ease of exploitation. The vendor vector claims AV:N/AC:L/PR:N/UI:N (unauthenticated, low complexity, full VC/VI/VA:H), yet the official description and GHSA advisory explicitly state the flaw is 'not that easy to exploit' because the |
| Exploit ScenarioDerived | An unauthenticated attacker sends a crafted GET request to the XWiki REST search endpoint (e.g. /xwiki/rest/wikis/{wiki}/search) with a malicious |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 09, 2026
Unauthenticated HQL injection in the XWiki Platform REST search API lets remote attackers inject arbitrary Hibernate Query Language through the orderField parameter of the wiki and space search endpoints, potentially exposing or manipulating data stored behind the wiki. The flaw affects XWiki Platform from 4.3-milestone-1 up to (but not including) 16.10.9 and 17.4.2, and is also fixed in 17.5.0; the vendor advisory publishes a sample payload demonstrating the injection. This is a genuine high-priority issue for internet-facing XWiki installations, but exploitation is materially harder than the raw 9.3 CVSS 4.0 score suggests: the injected value is concatenated twice into the generated query, so a working payload must null out the intervening fragments with single quotes while keeping both copies valid HQL, and usable payloads are database-specific. No public exploit code identified at time of analysis; EPSS is 2.37% (83rd percentile).
RemediationAI
Upgrade to a fixed release - XWiki Platform 16.10.9, 17.4.2, or 17.5.0 - as the primary and vendor-recommended fix; the patches add strict asc/desc validation for the order clause and route the REST search queries through the secure QueryManager. The vendor states there is no known workaround, so any compensating control is partial: on internet-facing instances, remove anonymous/guest view and search rights so the search endpoint is not reachable unauthenticated (side effect: breaks public wikis and anonymous browsing), restrict access to /xwiki/rest/wikis/*/search at the reverse proxy or WAF and drop or rewrite requests whose orderField value is anything other than asc/desc (side effect: may block legitimate custom sorting, but XWiki only supports those two values here), and rate-limit or temporarily disable the REST search endpoints while patching. Database-side hardening should not be relied on as the fix, and network filtering alone is a stopgap. Reference the advisory at https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-gprp-h92g-gc2h, the JIRA issue at https://jira.xwiki.org/browse/XWIKI-23247, and the upstream fix commits 743ebf8696ffa55161ed2c5ecf26b09f69e6bcf1 and a45eca2af772abb7324e56d7fd2df1ac937bc445.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
XWiki's REST search resources build queries in Hibernate Query Language (HQL), Hibernate's object-oriented query language that operates on mapped entities such as com.xpn.xwiki.doc.XWikiDocument rather than raw tables. The vulnerability class is CWE-89 (SQL/HQL injection): the orderField request parameter is string-concatenated into the generated query without validation, appearing once in the SELECT field list and once in the ORDER BY clause. Because HQL still permits DBMS-specific functions, injected fragments can invoke backend functions such as PostgreSQL's pg_sleep, enabling blind data exfiltration or time-based inference. The patch introduces HqlQueryUtils.getValidQueryOrder(order, def), which whitelists only asc and desc (case-insensitive) and falls back to a default otherwise, and switches the affected REST resources (BaseSearchResult, ModificationsResourceImpl) from the standard QueryManager to the secure QueryManager, which enforces XWiki's restricted query execution rules. The provided independent assessment rates the issue CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:N/C:H/I:L/A:L, i.e. no authentication or user interaction required but high attack complexity, with high confidentiality impact and limited integrity/availability impact.
Know when Xwiki gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Unauthenticated network REST endpoint (AV:N/PR:N) but double value insertion makes reliable injection hard (AC:H); HQL SELECT context enables broad data read (C:H) without stacked writes (I:L) and only time-based DoS (A:L).
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Starting in version 4.3-milestone-1 and prior to versions 16.10.9, 17.4.2, and 17.5.0, the REST search URL is vulnerable to HQL injection via the orderField parameter. The specified value is added twice in the query, though, once in the field list for the select and once in the order clause, so it's not that easy to exploit. The part of the query between the two fields can be enclosed in single quotes to effectively remove them, but the query still needs to remain valid with the query two times in it. This has been patched in versions 17.5.0, 17.4.2, and 16.10.9. No known workarounds are available.
Executive ViewAI
XWiki Platform, an enterprise collaboration and knowledge management system, is affected by a critical severity vulnerability in its REST search API that could allow remote attackers to access or manipulate sensitive wiki data. No public exploit identified at time of analysis, but the potential for data breach or integrity loss makes this a high-priority issue for organizations with internet-facing XWiki deployments. Leadership should ensure immediate mitigation steps are taken, especially given the absence of a vendor-released patch at this time.
Restrict access to the XWiki REST search API to trusted networks, disable the orderField parameter if feasible, deploy WAF rules to detect and block HQL injection patterns, and monitor logs for anomalous query activity.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
XWiki Platform allows unauthenticated remote code execution through the SolrSearch endpoint, enabling guests to execute
XWiki Platform prior to specific patched versions contains a CVSS 10.0 remote code execution vulnerability through the u
XWiki is a generic wiki platform. Rated critical severity (CVSS 9.3), this vulnerability is remotely exploitable, no aut
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated critical
XWiki Commons are technical libraries common to several other top level XWiki projects. Rated critical severity (CVSS 9.
XWiki Platform is a generic wiki platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl
XWiki Platform is a generic wiki platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated critical
XWiki Platform is a generic wiki platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl
A remote code execution vulnerability in XWiki (CVSS 8.8). Risk factors: public PoC available. Vendor patch is available
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated critical
XWiki Contrib's Syntax Markdown allows importing Markdown content into wiki pages and creating wiki content in Markdown.
NVD
CVE.org
EPSS
GitHub
Exploit-DB