Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| xwiki | xwiki-platform | >= 4.3-milestone-1, < 16.10.9, >= 17.0.0-rc-1, < 17.4.2 | — |
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- XWiki - HQL Injection http/cves/2025/CVE-2025-52472.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.xwiki.platform:xwiki-platform-rest-server | >= 17.0.0-rc-1, < 17.4.2 | 17.4.2 | GHSA-gprp-h92g-gc2h |
| Maven | org.xwiki.platform:xwiki-platform-rest-server | >= 4.3-milestone-1, < 16.10.9 | 16.10.9 | GHSA-gprp-h92g-gc2h |
Advisories 1
- WID-SEC-2025-2222 xwiki: Schwachstelle ermöglicht HQL Injection BSI CERT-Bund (WID) · Oct 6, 2025