XWiki Platform vulnerable to HQL injection via wiki and space search REST API
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| XWiki | xwiki-platform | 4.3-milestone-1 to before 16.10.9; 17.0.0-rc-1 to before 17.4.2 | 16.10.9, 17.4.2 | Patch available | CNA |
| — | org.xwiki.platform:xwiki-platform-rest-server (Maven) | 17.0.0-rc-1 to before 17.4.2 | 17.4.2 | Patch available | GHSA-gprp-h92g-gc2h |
| — | org.xwiki.platform:xwiki-platform-rest-server (Maven) | 4.3-milestone-1 to before 16.10.9 | 16.10.9 | Patch available | GHSA-gprp-h92g-gc2h |
- xwiki-platform VendorXWiki Affected 4.3-milestone-1 to before 16.10.9; 17.0.0-rc-1 to before 17.4.2 Fixed in 16.10.9, 17.4.2 Patch available CNA
- org.xwiki.platform:xwiki-platform-rest-server (Maven) Vendor— Affected 17.0.0-rc-1 to before 17.4.2 Fixed in 17.4.2 Patch available GHSA-gprp-h92g-gc2h
- org.xwiki.platform:xwiki-platform-rest-server (Maven) Vendor— Affected 4.3-milestone-1 to before 16.10.9 Fixed in 16.10.9 Patch available GHSA-gprp-h92g-gc2h
Remediation
- Fix · CNA xwiki-platform (xwiki) Fixed in 16.10.9, 17.4.2
- Fix · GHSA-gprp-h92g-gc2h org.xwiki.platform:xwiki-platform-rest-server (Maven) Fixed in 17.4.2 Advisory →
- Fix · GHSA-gprp-h92g-gc2h org.xwiki.platform:xwiki-platform-rest-server (Maven) Fixed in 16.10.9 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-52472
- 2026-10-03 Alias added: GHSA-gprp-h92g-gc2h
References
Other 5
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-gprp-h92g-gc2h
- https://github.com/xwiki/xwiki-platform/commit/743ebf8696ffa55161ed2c5ecf26b09f69e6bcf1
- https://github.com/xwiki/xwiki-platform/commit/a45eca2af772abb7324e56d7fd2df1ac937bc445
- https://jira.xwiki.org/browse/XWIKI-23247
- https://github.com/xwiki/xwiki-platform
More XWiki vulnerabilities
- TI-2025-18595 Remote code execution as guest via SolrSearchMacros request in xwiki KEVCVSS 3.1CRITICAL 9.8
- TI-2023-25214 Remote code execution through the section parameter in Administration as guest in XWiki Platform CVSS 3.1CRITICAL 10.0
- TI-2025-23500 XWiki Platform vulnerable to SQL injection through getdeleteddocuments.vm template sort parameter CVSS 4.0CRITICAL 9.3
- TI-2025-23979 org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API CVSS 4.0CRITICAL 9.3
- TI-2024-20829 XWiki Platform: Remote code execution from account via SearchSuggestSourceSheet CVSS 3.1CRITICAL 10.0
- TI-2024-14375 XWiki Remote Code Execution vulnerability via user registration CVSS 3.1CRITICAL 10.0
Sources
- CVE-2025-52472 · CVE Program
- CVE-2025-52472 · NVD
- FIRST EPSS
- GHSA-gprp-h92g-gc2h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences