CVE-2025-54385
CVE-2025-54385 — XWiki Platform's searchDocuments API allows for SQL injection
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
8.6
HIGH
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 8.6 | CVSS 4.0 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-20
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1562.003Impair Defenses: Impair Command History Logging
- T1574.006Hijack Execution Flow: Dynamic Linker Hijacking
- T1574.007Hijack Execution Flow: Path Interception by PATH Environment Variable
References
6 on the record
- github.com/xwiki/xwiki-platform/security/advisories/GHSA-p9qm-p942-q3w5
x_refsource_CONFIRM
- github.com/xwiki/xwiki-platform/commit/7313dc9b533c70f14b7672379c8b3b63d1fd8f51
x_refsource_MISC
- github.com/xwiki/xwiki-platform/commit/7c4087d44ac550610b2fa413dd4f5375409265a5
x_refsource_MISC
- docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_XMLGEN.html
x_refsource_MISC
- jira.xwiki.org/browse/XWIKI-22728
x_refsource_MISC
- www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/16.10.6
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-24893 Remote code execution as guest via SolrSearchMacros request in xwikiCVSS 9.8 · CISA KEV
- CVE-2026-93952 Security Advisory 0183CVSS 10.0 · CISA KEV
- CVE-2026-34910 Ubiquiti UniFi OS Improper Input Validation VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-20393 Cisco Secure Email Gateway and Cisco Secure Email and Web Manager Remote Command Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2024-3400 PAN-OS: Arbitrary File Creation Leads to OS Command Injection Vulnerability in GlobalProtectCVSS 10.0 · CISA KEV
- CVE-2022-24086 Adobe Commerce and Magento Open Source Improper Input Validation VulnerabilityCVSS 10.0 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.