{"cve":"CVE-2025-54385","nvd":{"published":"2025-07-26T04:16:06.397","modified":"2026-06-17T09:39:59.290","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":8.6},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-20"],"references":["https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_XMLGEN.html","https://github.com/xwiki/xwiki-platform/commit/7313dc9b533c70f14b7672379c8b3b63d1fd8f51","https://github.com/xwiki/xwiki-platform/commit/7c4087d44ac550610b2fa413dd4f5375409265a5","https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-p9qm-p942-q3w5","https://jira.xwiki.org/browse/XWIKI-22728"],"products":["xwiki:xwiki"],"source":"nvd","synced_at":"2026-10-19T22:05:46.678065081+00:00"},"epss":{"cve":"CVE-2025-54385","score":0.00684,"percentile":0.52596,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-p9qm-p942-q3w5","url":"https://osv.dev/vulnerability/GHSA-p9qm-p942-q3w5","summary":"XWiki Platform vulnerable to SQL injection through XWiki#searchDocuments API","modified":"2025-07-28T13:04:55Z","packages":[{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-oldcore","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-oldcore","ranges":[">=1.0 <16.10.6"],"fixed":["16.10.6"]},{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-oldcore","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-oldcore","ranges":[">=17.0.0-rc1 <17.3.0-rc-1"],"fixed":["17.3.0-rc-1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}