CVE-2025-54385
criticalpriority · track · 39EPSS 0.007 · 52 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 4.7–9.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (12)
Products and version ranges known to be affected.
- Maven org.xwiki.platform:xwiki-platform-oldcore1.0 → 16.10.6osvUSpkg:maven/org.xwiki.platform/xwiki-platform-oldcore
- Maven org.xwiki.platform:xwiki-platform-oldcore17.0.0-rc1 → 17.3.0-rc-1osvUSpkg:maven/org.xwiki.platform/xwiki-platform-oldcore
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-1643xwiki: Mehrere Schwachstelle ermöglicht eine SQL InjectionDeutsch2025-07-24csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann Schwachstellen in xwiki ausnutzen, um eine SQL Injection durchzuführen.
- GHSA-p9qm-p942-q3w5XWiki Platform vulnerable to SQL injection through XWiki#searchDocuments API2025-07-25ghsa · osvUS
### Impact It's possible to execute any SQL query in Oracle by using the function like [DBMS_XMLGEN or DBMS_XMLQUERY](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_XMLGEN.html). The XWiki#searchDocuments APIs are not sanitizing the query at all and even if they force a specific select, Hibernate allows using any native function in an HQL query (for example in the WHERE). ### Patches This has been patched in 16.10.6 and 17.3.0-rc-1. ### Workarounds There is no known workaround, other than upgrading XWiki. ### References https://jira.xwiki.org/browse/XWIKI-22728 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira XWiki.org](https://jira.xwiki.org/) * Email us at [Security Mailing List](mailto:security@xwiki.org)
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (20)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2025-54385cnnvd
- https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_XMLGEN.htmlcnnvd
- https://github.com/xwiki/xwiki-platform/commit/7313dc9b533c70f14b7672379c8b3b63d1fd8f51cnnvd
- https://github.com/xwiki/xwiki-platform/commit/7c4087d44ac550610b2fa413dd4f5375409265a5cnnvd
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-p9qm-p942-q3w5cnnvd
- https://jira.xwiki.org/browse/XWIKI-22728cnnvd
- https://www.xwiki.org/xwiki/bin/view/Download/Patchcnnvd
- https://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/16.10.6cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan