Browse / CVEs / CVE-2025-32429
CVE-2025-32429· xwiki / xwiki· CWE-89
XWiki Platform - SQL Injection
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In versions 9.4-rc-1 through 16.10.5 and 17.0.0-rc-1 through 17.2.2, it's possible for anyone to inject SQL using the parameter sort of the getdeleteddocuments.vm. It's injected as is as an ORDER BY value.
Impact
Authenticated attackers with access to the deleted documents trash feature could inject SQL code, leading to data leakage, database modification, or further compromise of the application.
Fix
Upgrade to XWiki Platform version 16.10.6 and 17.3.0-rc-1. (or newer) which addresses this vulnerability. Always validate and sanitize user-controlled input for query parameters.
How to confirm it
Send: GET {{BaseURL}}/xwiki/rest/liveData/sources/liveTable/entries?sourceParams.template=getdeleteddocuments.vm&sort=injected
Positive when: contains_all(body, "Exception", "org.xwiki.livedata.LiveDataException", "HqlQueryScriptService") and contains(content_script_type, "text/javascript") and status_code == 500Run it with nuclei: nuclei -id CVE-2025-32429 -u <target>
The full check
id: CVE-2025-32429
info:
name: XWiki Platform - SQL Injection
author: ritikchaddha
severity: critical
description: |
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In versions 9.4-rc-1 through 16.10.5 and 17.0.0-rc-1 through 17.2.2, it's possible for anyone to inject SQL using the parameter sort of the getdeleteddocuments.vm. It's injected as is as an ORDER BY value.
impact: |
Authenticated attackers with access to the deleted documents trash feature could inject SQL code, leading to data leakage, database modification, or further compromise of the application.
remediation: |
Upgrade to XWiki Platform version 16.10.6 and 17.3.0-rc-1. (or newer) which addresses this vulnerability. Always validate and sanitize user-controlled input for query parameters.
reference:
- https://jira.xwiki.org/browse/XWIKI-23093
- https://nvd.nist.gov/vuln/detail/CVE-2025-32429
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2025-32429
epss-score: 0.85496
epss-percentile: 0.99724
cwe-id: CWE-89
cpe: cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: xwiki
product: xwiki
shodan-query: html:"data-xwiki-reference"
fofa-query: body="data-xwiki-reference"
tags: cve,cve2025,xwiki,hqli,sqli,vkev,vuln
http:
- method: GET
path:
- "{{BaseURL}}/xwiki/rest/liveData/sources/liveTable/entries?sourceParams.template=getdeleteddocuments.vm&sort=injected"
matchers-condition: and
matchers:
- type: dsl
dsl:
- 'contains_all(body, "Exception", "org.xwiki.livedata.LiveDataException", "HqlQueryScriptService")'
- 'contains(content_script_type, "text/javascript")'
- 'status_code == 500'
condition: andReferences
Use this check only on systems you are authorised to test. Where the data comes from