{"id":"CVE-2025-52472","published":"2025-10-06T14:53:46Z","modified":"2025-10-06T15:13:42Z","title":"XWiki Platform vulnerable to HQL injection via wiki and space search REST API","vendor":"xwiki","product":"xwiki-platform","tier":"core","eol":null,"affectedVersions":[{"vendor":"xwiki","product":"xwiki-platform","versions":[">= 4.3-milestone-1, < 16.10.9",">= 17.0.0-rc-1, < 17.4.2"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"XWiki Platform (the xwiki-platform product) has an HQL injection flaw in its REST search endpoint for wiki and space search, where the orderField parameter is not properly neutralised.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-31T04:54:34Z"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02365,"percentile":0.83784,"date":"2026-10-30","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2025-11-27","exploitedFirstSeen":"2025-11-27","ransomware":false,"evidence":[{"url":"https://app.crowdsec.net/cti/cve-explorer/CVE-2025-52472","date":"2025-11-27"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-gprp-h92g-gc2h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/743ebf8696ffa55161ed2c5ecf26b09f69e6bcf1","tags":["x_refsource_MISC"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/a45eca2af772abb7324e56d7fd2df1ac937bc445","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-23247","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rest-server","vulnerableRanges":[">=17.0.0-rc-1, <17.4.2",">=4.3-milestone-1, <16.10.9"],"patched":["17.4.2","16.10.9"],"from":["GHSA-gprp-h92g-gc2h"],"provenance":"source"}],"advisories":[{"id":"GHSA-gprp-h92g-gc2h","url":"https://github.com/advisories/GHSA-gprp-h92g-gc2h","severity":"CRITICAL","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rest-server","vulnerableRanges":[">=17.0.0-rc-1, <17.4.2"],"patched":["17.4.2"],"provenance":"source","from":"GHSA"},{"id":"GHSA-gprp-h92g-gc2h","url":"https://github.com/advisories/GHSA-gprp-h92g-gc2h","severity":"CRITICAL","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rest-server","vulnerableRanges":[">=4.3-milestone-1, <16.10.9"],"patched":["16.10.9"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2025-32147","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-32147","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"nuclei":[{"id":"CVE-2025-52472","name":"XWiki - HQL Injection","severity":"high","path":"http/cves/2025/CVE-2025-52472.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-52472.yaml"}],"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2025-10-06","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2025-52472","provenance":"source"},{"date":"2025-11-27","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://app.crowdsec.net/cti/cve-explorer/CVE-2025-52472","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":68.3,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":5.0,"detail":"added 338 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":16.76,"detail":"percentile 0.8378"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":6.51,"detail":"base score 9.3"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-xwiki-platform-cve-2022-36100","parents":[{"from":"CVE-2022-41936","to":"CVE-2025-52472","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/ModificationsResourceImpl.java"],"commits":["https://github.com/xwiki/xwiki-platform/commit/38dc1aa1a4435f24d58f5b8e4566cbcb0971f8ff","https://github.com/xwiki/xwiki-platform/commit/743ebf8696ffa55161ed2c5ecf26b09f69e6bcf1","https://github.com/xwiki/xwiki-platform/commit/a45eca2af772abb7324e56d7fd2df1ac937bc445"],"basis":"shared function","functions":["getModifications"]}]},{"from":"CVE-2024-45591","to":"CVE-2025-52472","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/pages/PageHistoryResourceImpl.java","xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/pages/PageTranslationHistoryResourceImpl.java"],"commits":["https://github.com/xwiki/xwiki-platform/commit/26482ee5d29fc21f31134d1ee13db48716e89e0f","https://github.com/xwiki/xwiki-platform/commit/9cbca9808300797c67779bb9a665d85cf9e3d4b8","https://github.com/xwiki/xwiki-platform/commit/743ebf8696ffa55161ed2c5ecf26b09f69e6bcf1","https://github.com/xwiki/xwiki-platform/commit/a45eca2af772abb7324e56d7fd2df1ac937bc445"],"basis":"rarely changed file"}]},{"from":"CVE-2025-54385","to":"CVE-2025-52472","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/store/hibernate/query/HqlQueryUtils.java"],"commits":["https://github.com/xwiki/xwiki-platform/commit/743ebf8696ffa55161ed2c5ecf26b09f69e6bcf1","https://github.com/xwiki/xwiki-platform/commit/a45eca2af772abb7324e56d7fd2df1ac937bc445","https://github.com/xwiki/xwiki-platform/commit/7313dc9b533c70f14b7672379c8b3b63d1fd8f51","https://github.com/xwiki/xwiki-platform/commit/7c4087d44ac550610b2fa413dd4f5375409265a5"],"basis":"shared function","functions":["HqlQueryUtils"]}]}],"packageHistory":[{"cve":"CVE-2025-29925","published":"2025-03-19","fixed":"16.10.0-rc-1","kev":false},{"cve":"CVE-2025-32969","published":"2025-04-23","fixed":"16.10.1","kev":false},{"cve":"CVE-2025-49584","published":"2025-06-13","fixed":"17.0.0","kev":false,"link":{"from":"CVE-2025-49584","to":"CVE-2025-52472","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-rest-server","fromFixed":"16.10.3","toFixed":"16.10.9","daysApart":115},{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-rest-server","fromFixed":"17.0.0","toFixed":"17.4.2","daysApart":115}]}},{"cve":"CVE-2025-52472","published":"2025-10-06","fixed":"17.4.2","kev":false},{"cve":"CVE-2025-66473","published":"2025-12-10","fixed":"17.7.0-rc-1","kev":false,"link":{"from":"CVE-2025-52472","to":"CVE-2025-66473","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-rest-server","fromFixed":"16.10.9","toFixed":"16.10.11","daysApart":65},{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-rest-server","fromFixed":"17.4.2","toFixed":"17.4.4","daysApart":65}]}},{"cve":"CVE-2026-33137","published":"2026-05-20","fixed":"18.1.0-rc-1","kev":false}],"package":"Maven:org.xwiki.platform:xwiki-platform-rest-server"}}