CVE-2025-54385: XWiki Platform's searchDocuments API allows for SQL injection

Published Jul 25, 2025
·
Updated

Impact

It's possible to execute any SQL query in Oracle by using the function like DBMSXMLGEN or DBMSXMLQUERY.

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 Email us at Security Mailing List

Other sources

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 DBMSXMLGEN or DBMSXMLQUERY. 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.

MITRE

Affected Software

4 affected componentsFixes available
maven/org.xwiki.platform:xwiki-platform-oldcore>=17.0.0-rc1<17.3.0-rc-1
17.3.0-rc-1
maven/org.xwiki.platform:xwiki-platform-oldcore>=1.0<16.10.6
16.10.6
XWiki xwiki<16.10.6
XWiki xwiki>=17.0.0<=17.2.2

Event History

Jul 25, 2025
Advisory Published
via GitHub·02:11 PM
Data Sourced
via GitHub·02:11 PM
DescriptionWeaknessAffected Software
Jul 26, 2025
CVE Published
via MITRE·03:28 AM
Data Sourced
via MITRE·03:28 AM
DescriptionWeakness
Data Sourced
via NVD·04:16 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 AM
RemedyAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-54385?

CVE-2025-54385 has a high severity rating due to its potential for arbitrary SQL query execution in Oracle.

2

How do I fix CVE-2025-54385?

To remediate CVE-2025-54385, update to version 17.3.0-rc-1 or 16.10.6 of the affected XWiki software.

3

What versions are affected by CVE-2025-54385?

CVE-2025-54385 affects XWiki versions between 17.0.0-rc1 to 17.3.0-rc-1 and all versions prior to 16.10.6.

4

What are the implications of CVE-2025-54385?

CVE-2025-54385 can allow attackers to execute arbitrary SQL queries, potentially leading to data leakage or manipulation.

5

Is there a workaround for CVE-2025-54385?

Currently, the recommended action is to upgrade to a secure version, as there are no known effective workarounds.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203