XWiki Platform's searchDocuments API allows for SQL injection
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| XWiki | xwiki-platform | before 16.10.6; 17.0.0-rc1 to before 17.3.0-rc-1 | 16.10.6, 17.3.0-rc-1 | Patch available | CNA |
| — | org.xwiki.platform:xwiki-platform-oldcore (Maven) | 1.0 to before 16.10.6 | 16.10.6 | Patch available | GHSA-p9qm-p942-q3w5 |
| — | org.xwiki.platform:xwiki-platform-oldcore (Maven) | 17.0.0-rc1 to before 17.3.0-rc-1 | 17.3.0-rc-1 | Patch available | GHSA-p9qm-p942-q3w5 |
- xwiki-platform VendorXWiki Affected before 16.10.6; 17.0.0-rc1 to before 17.3.0-rc-1 Fixed in 16.10.6, 17.3.0-rc-1 Patch available CNA
- org.xwiki.platform:xwiki-platform-oldcore (Maven) Vendor— Affected 1.0 to before 16.10.6 Fixed in 16.10.6 Patch available GHSA-p9qm-p942-q3w5
- org.xwiki.platform:xwiki-platform-oldcore (Maven) Vendor— Affected 17.0.0-rc1 to before 17.3.0-rc-1 Fixed in 17.3.0-rc-1 Patch available GHSA-p9qm-p942-q3w5
Remediation
- Fix · CNA xwiki-platform (xwiki) Fixed in 16.10.6, 17.3.0-rc-1
- Fix · GHSA-p9qm-p942-q3w5 org.xwiki.platform:xwiki-platform-oldcore (Maven) Fixed in 16.10.6 Advisory →
- Fix · GHSA-p9qm-p942-q3w5 org.xwiki.platform:xwiki-platform-oldcore (Maven) Fixed in 17.3.0-rc-1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-54385
- 2026-10-03 Alias added: GHSA-p9qm-p942-q3w5
- 2026-10-25 EPSS moved to the 50th–90th percentile
References
Patch 2
Advisory 3
More Xwiki vulnerabilities
- TI-2025-18595 Remote code execution as guest via SolrSearchMacros request in xwiki KEVCVSS 3.1CRITICAL 9.8
- TI-2023-25214 Remote code execution through the section parameter in Administration as guest in XWiki Platform CVSS 3.1CRITICAL 10.0
- TI-2025-23500 XWiki Platform vulnerable to SQL injection through getdeleteddocuments.vm template sort parameter CVSS 4.0CRITICAL 9.3
- TI-2025-23979 org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API CVSS 4.0CRITICAL 9.3
- TI-2024-20829 XWiki Platform: Remote code execution from account via SearchSuggestSourceSheet CVSS 3.1CRITICAL 10.0
- TI-2024-14375 XWiki Remote Code Execution vulnerability via user registration CVSS 3.1CRITICAL 10.0
Sources
- CVE-2025-54385 · CVE Program
- CVE-2025-54385 · NVD
- FIRST EPSS
- GHSA-p9qm-p942-q3w5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences