CVE-2025-52472
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.
Weakness
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2025-10-06 |
Timeline
- 2025-10-06Published by the CNA14:53 UTC
- 2025-10-06GitHub advisory published (GHSA-gprp-h92g-gc2h)same day
- 2025-10-06CISA SSVC decision recordedsame day
Exploit and advisory records
Nuclei templates:
- CVE-2025-52472: XWiki - HQL Injection
GitHub advisory GHSA-gprp-h92g-gc2h, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.xwiki.platform:xwiki-platform-rest-server | from 17.0.0-rc-1 before 17.4.2 | 17.4.2 |
| Maven org.xwiki.platform:xwiki-platform-rest-server | from 4.3-milestone-1 before 16.10.9 | 16.10.9 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| xwiki xwiki-platform |
References
- https://github.com/xwiki/xwiki-platform/commit/743ebf8696ffa55161ed2c5ecf26b09f69e6bcf1
- https://github.com/xwiki/xwiki-platform/commit/a45eca2af772abb7324e56d7fd2df1ac937bc445
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-gprp-h92g-gc2h
- https://jira.xwiki.org/browse/XWIKI-23247
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2025-52472'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2025-52472'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2025-52472'curl 'https://api.contrastcyber.com/cve_products/CVE-2025-52472'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).