XWiki Platform's searchDocuments API allows for SQL injection
CVE-2025-54385Published 26 Jul 2025, 03:28 UTC
Real-world risk
1.7/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.6
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| xwiki-platformCommon | < 16.10.6; >= 17.0.0-rc1, < 17.3.0-rc-1 | 16.10.6, 17.3.0-rc-1 |
What to do
Update to a fixed version: 16.10.6, 17.3.0-rc-1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | HighAdmin or equivalent | From the CVSS vector | 0.20 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.7% chance of exploitation in 30 days (percentile 54), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.200
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.2 × threat 0.851.700
- Rounded to one decimal between 0.1 and 101.7
Exploitation and evidence timeline
- 26 Jul 2025 Published
- 3 Dec 2026 Risk 1.7 (cvss fallback)
Weakness
CWE-20
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-p9qm-p942-q3w5vendor-advisory
- https://github.com/xwiki/xwiki-platform/commit/7313dc9b533c70f14b7672379c8b3b63d1fd8f51misc
- https://github.com/xwiki/xwiki-platform/commit/7c4087d44ac550610b2fa413dd4f5375409265a5misc
- https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_XMLGEN.htmlmisc
- https://jira.xwiki.org/browse/XWIKI-22728misc
- https://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/16.10.6misc
- CVE-2025-54385 on CVE.org