Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.platform/xwiki-platform-oldcore
  4. ›
  5. CVE-2025-54385

CVE-2025-54385: XWiki Platform vulnerable to SQL injection through XWiki#searchDocuments API

July 25, 2025 (updated November 10, 2025)

It’s possible to execute any SQL query in Oracle by using the function like DBMS_XMLGEN or DBMS_XMLQUERY.

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).

References

  • docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_XMLGEN.html
  • github.com/advisories/GHSA-p9qm-p942-q3w5
  • github.com/xwiki/xwiki-platform
  • github.com/xwiki/xwiki-platform/commit/7313dc9b533c70f14b7672379c8b3b63d1fd8f51
  • github.com/xwiki/xwiki-platform/commit/7c4087d44ac550610b2fa413dd4f5375409265a5
  • github.com/xwiki/xwiki-platform/security/advisories/GHSA-p9qm-p942-q3w5
  • jira.xwiki.org/browse/XWIKI-22728
  • nvd.nist.gov/vuln/detail/CVE-2025-54385
  • www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/16.10.6

Code Behaviors & Features

Detect and mitigate CVE-2025-54385 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.0 before 16.10.6, all versions starting from 17.0.0-rc1 before 17.3.0-rc-1

Fixed versions

  • 16.10.6
  • 17.3.0-rc-1

Solution

Upgrade to versions 16.10.6, 17.3.0-rc-1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

maven/org.xwiki.platform/xwiki-platform-oldcore/CVE-2025-54385.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:13 +0000.