CVE-2025-54385 Details
Description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In versions between 17.0.0-rc1 to 17.2.2 and versions 16.10.5 and below, it's possible to execute any SQL query in Oracle by using the function like DBMS_XMLGEN or DBMS_XMLQUERY. The XWiki#searchDocuments APIs pass queries directly to Hibernate without sanitization. Even when these APIs enforce a specific SELECT clause, attackers can still inject malicious code through HQL's native function support in other parts of the query (such as the WHERE clause). This is fixed in versions 16.10.6 and 17.3.0-rc-1.
A SQL injection vulnerability has been identified in XWiki Platform versions 17.0.0-rc1 to 17.2.2, as well as in versions 16.10.5 and earlier. This vulnerability allows attackers to execute arbitrary SQL queries on Oracle databases by leveraging the 'DBMS_XMLGEN' or 'DBMS_XMLQUERY' functions. The issue arises because the 'XWiki#searchDocuments' APIs pass queries directly to Hibernate without proper sanitization. Although these APIs impose a specific SELECT clause, attackers can inject malicious code through Hibernate Query Language (HQL) functions in other query parts, such as the WHERE clause.
Users can upgrade to XWiki Platform versions 16.10.6 or 17.3.0-rc-1, both of which include the necessary patch to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| xwiki xwiki | < 16.10.6 >= 17.0.0, <= 17.2.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 3, 2025 | Initial Analysis | [email protected] |
| Jul 26, 2025 | New CVE Received | [email protected] |