# CVE-2025-52472: XWiki Platform vulnerable to HQL injection via wiki and space search REST API

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.37%, higher than 84% of CVEs (2026-12-01)
- Published: 2025-10-06T14:53:46.654Z
- Modified: 2026-10-09T10:10:00.193Z
- Also known as: GHSA-gprp-h92g-gc2h
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 4.3-milestone-1, < 16.10.9; >= 17.0.0-rc-1, < 17.4.2
- org.xwiki.platform:xwiki-platform-rest-server (Maven): from 17.0.0-rc-1 before 17.4.2; from 4.3-milestone-1 before 16.10.9

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-gprp-h92g-gc2h> (web)
- <https://github.com/xwiki/xwiki-platform/commit/743ebf8696ffa55161ed2c5ecf26b09f69e6bcf1> (web)
- <https://github.com/xwiki/xwiki-platform/commit/a45eca2af772abb7324e56d7fd2df1ac937bc445> (web)
- <https://jira.xwiki.org/browse/XWIKI-23247> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-52472> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2025-52472](https://www.cve.org/CVERecord?id=CVE-2025-52472), CVE Terms of Use, modified 2025-10-06
- GitHub Advisory Database: [GHSA-gprp-h92g-gc2h](https://github.com/advisories/GHSA-gprp-h92g-gc2h), CC-BY-4.0, modified 2025-10-06
- NVD: [CVE-2025-52472](https://nvd.nist.gov/vuln/detail/CVE-2025-52472), Public domain, modified 2026-10-09

---

Page: https://cve.day/CVE-2025-52472 · Whole record: https://cve.day/CVE-2025-52472.json · Rebuilt by cve.day 2026-11-25T22:59:05.565Z
