XWiki Platform vulnerable to HQL injection via wiki and space search REST API
CVE-2025-52472Published 6 Oct 2025, 14:53 UTC
Real-world risk
10.0/ 10Critical
Act now
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.3
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| xwiki-platformCommon | >= 4.3-milestone-1, < 16.10.9; >= 17.0.0-rc-1, < 17.4.2 | 16.10.9, 17.4.2 |
What to do
Update to a fixed version: 16.10.9, 17.4.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T4: Weaponized (× 1.00)
A Metasploit module, a Nuclei template, or a verified Exploit-DB entry
- Nuclei scanner template (link)
EPSS 2.4% chance of exploitation in 30 days (percentile 84), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T4: Weaponized1.000
- 10 × impact 1 × prerequisites 1 × threat 110.000
- Rounded to one decimal between 0.1 and 1010.0
Exploitation and evidence timeline
- 6 Oct 2025 Published
- 3 Dec 2026 Nuclei scanner template first seen
- 3 Dec 2026 Risk 10.0 (cvss fallback)
Weakness
CWE-89
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-gprp-h92g-gc2hvendor-advisory
- https://github.com/xwiki/xwiki-platform/commit/743ebf8696ffa55161ed2c5ecf26b09f69e6bcf1misc
- https://github.com/xwiki/xwiki-platform/commit/a45eca2af772abb7324e56d7fd2df1ac937bc445misc
- https://jira.xwiki.org/browse/XWIKI-23247misc
- CVE-2025-52472 on CVE.org