XWiki HQL Injection via orderField in REST Search (v4.3milestone1 17.5.0)
CVE-2025-52472 Published on October 6, 2025
XWiki Platform vulnerable to HQL injection via wiki and space search REST API
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.
Weakness Type
What is a SQL Injection Vulnerability?
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.
CVE-2025-52472 has been classified to as a SQL Injection vulnerability or weakness.
Products Associated with CVE-2025-52472
Want to know whenever a new CVE is published for Xwiki? stack.watch will email you.
Affected Versions
xwiki-platform:- Version >= 4.3-milestone-1, < 16.10.9 is affected.
- Version >= 17.0.0-rc-1, < 17.4.2 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2025-52472
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| maven | org.xwiki.platform:xwiki-platform-rest-server | >= 17.0.0-rc-1, < 17.4.2 | 17.4.2 |
| maven | org.xwiki.platform:xwiki-platform-rest-server | >= 4.3-milestone-1, < 16.10.9 | 16.10.9 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.