It's possible to execute any SQL query in Oracle by using the function like DBMS_XMLGEN or DBMS_XMLQUERY.
The XWiki query validator does not sanitize functions that would be used in a simple select and Hibernate allows using any native function in an HQL query.
This has been patched in 16.10.2, 16.4.7 and 15.10.16.
There is no known workaround, other than upgrading XWiki.
https://jira.xwiki.org/browse/XWIKI-22734
If you have any questions or comments about this advisory:
{
"cwe_ids": [
"CWE-89"
],
"github_reviewed": true,
"github_reviewed_at": "2025-06-12T21:52:50Z",
"nvd_published_at": "2025-06-12T15:15:38Z",
"severity": "CRITICAL"
}