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

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Published: 2025-07-25T14:11:00.000Z
- Modified: 2026-06-17T09:39:59.290Z
- Also known as: GHSA-p9qm-p942-q3w5
- Weaknesses: CWE-20, CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: < 16.10.6; >= 17.0.0-rc1, < 17.3.0-rc-1
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 1.0 before 16.10.6; from 17.0.0-rc1 before 17.3.0-rc-1
- xwiki xwiki: before 16.10.6; from 17.0.0 up to 17.2.2

## Every score

- GitHub_M: CVSS:4.0 8.6 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-p9qm-p942-q3w5> (vendor-advisory, web)
- <https://github.com/xwiki/xwiki-platform/commit/7313dc9b533c70f14b7672379c8b3b63d1fd8f51> (patch, web)
- <https://github.com/xwiki/xwiki-platform/commit/7c4087d44ac550610b2fa413dd4f5375409265a5> (patch, web)
- <https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_XMLGEN.html> (product, web)
- <https://jira.xwiki.org/browse/XWIKI-22728> (vendor-advisory, web)
- <https://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/16.10.6> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54385> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2025-54385](https://www.cve.org/CVERecord?id=CVE-2025-54385), CVE Terms of Use, modified 2025-07-28
- GitHub Advisory Database: [GHSA-p9qm-p942-q3w5](https://github.com/advisories/GHSA-p9qm-p942-q3w5), CC-BY-4.0, modified 2025-07-28
- NVD: [CVE-2025-54385](https://nvd.nist.gov/vuln/detail/CVE-2025-54385), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54385 · Whole record: https://cve.day/CVE-2025-54385.json · Rebuilt by cve.day 2026-11-25T22:59:01.753Z
