CVE-2025-32969 — Vulnerability in xwiki-platform-rest-server
org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (9.52%). Schedule for your next planned update.
Does your project use an affected org.xwiki.platform:xwiki-platform-rest-server version?
Paste your pom.xml to check it for CVE-2025-32969 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
It is possible for a remote unauthenticated user to escape from the HQL execution context and perform a blind SQL injection to execute arbitrary SQL statements on the database backend, including when "Prevent unregistered users from viewing pages, regardless of the page rights" and "Prevent unregistered users from editing pages, regardless of the page rights" options are enabled.
Depending on the used database backend, the attacker may be able to not only obtain confidential information such as password hashes from the database, but also execute UPDATE/INSERT/DELETE queries.
The vulnerability may be tested in a default installation of XWIki Standard Flavor, including using the official Docker containers.
An example query, which leads to SQL injection with MySQL/MariaDB backend is shown below:
time curl "http://127.0.0.1:8080/rest/wikis/xwiki/query?q=where%20doc.name=length('a')*org.apache.logging.log4j.util.Chars.SPACE%20or%201%3C%3E%271%5C%27%27%20union%20select%201,2,3,sleep(10)%20%23%27&type=hql&distinct=0"
When executed, the response from the server will come after a delay of 10 extra seconds, indicating successful execution of the injected SQL statement.
An example of a query for the PostgreSQL database backend is shown below:
curl "https://127.0.0.1:8080/rest/wikis/xwiki/query?q=where%20%24%24='%24%24=concat(%20chr(%2061%20),(chr(%2039%20))%20)%20;select%201%20--%20comment'&type=hql&distinct=0"
Both requests employ database backend dependent techniques of breaking out of HQL query context, described, for example, here: https://www.sonarsource.com/blog/exploiting-hibernate-injections.
Patches
This has been patched in 16.10.1, 16.4.6 and 15.10.16.
Workarounds
There is no known workaround, other than upgrading XWiki.
References
https://jira.xwiki.org/browse/XWIKI-22691
For more information
If you have any questions or comments about this advisory:
- Open an issue in Jira XWiki.org
- Email us at Security Mailing List
Attribution
Sergey Anufrienko from Kaspersky ICS-CERT vulnerability research team reported this vulnerability.
Advisory Timeline
- First published April 23, 2025 (583 days ago).
- Last revised April 30, 2025 — 7 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 16.10.1 for org.xwiki.platform:xwiki-platform-rest-server -->
<!-- Update pom.xml dependency version to 16.4.6 for org.xwiki.platform:xwiki-platform-rest-server -->
<!-- Update pom.xml dependency version to 15.10.16 for org.xwiki.platform:xwiki-platform-rest-server -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.xwiki.platform:xwiki-platform-rest-server Maven · Affected: All versions | 16.10.1 |
| org.xwiki.platform:xwiki-platform-rest-server Maven · Affected: All versions | 16.4.6 |
| org.xwiki.platform:xwiki-platform-rest-server Maven · Affected: All versions | 15.10.16 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-f69v-xrj8-rhxfWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-32969ADVISORY
- https://github.com/xwiki/xwiki-platform/commit/5c11a874bd24a581f534d283186e209bbccd8113WEB
- https://github.com/xwiki/xwiki-platformPACKAGE
- https://jira.xwiki.org/browse/XWIKI-22691WEB
Frequently Asked Questions
- What is CVE-2025-32969?
- org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2025-32969?
- CVE-2025-32969 affects org.xwiki.platform:xwiki-platform-rest-server. It has a 9.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-32969 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 96.2% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2023-37277CRITICAL
XWiki Platform vulnerable to cross-site request forgery (CSRF) via the REST API
- CVE-2023-29514CRITICAL
XWiki vulnerable to Code Injection in template provider administration
- CVE-2023-36470CRITICAL
XWiki Platform vulnerable to Code Injection in icon themes
- CVE-2025-52472CRITICAL
XWiki Platform is vulnerable to HQL injection via wiki and space search REST API
- CVE-2026-33137CRITICAL
XWiki Platform has an Unauthenticated XAR Import via REST /wikis/{wikiName}
- CVE-2023-29207HIGH
Improper Neutralization of Script-Related HTML Tags (XSS) in the LiveTable Macro
- CVE-2025-49582HIGH
XWiki's required right warnings for macros are incomplete
- CVE-2026-61689HIGH
XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes