9.3critical
XWiki allows SQL injection in query endpoint of REST API with Oracle
- Severity
- 9.3critical CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.53% (higher than 46% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-prwh-7838-xf82
Description
XWiki is a generic wiki platform. 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 vulnerability is fixed in 16.10.2, 16.4.7, and 15.10.16.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xwiki xwiki-platform | >= 1.0, < 15.10.16, >= 16.0.0-rc-1, < 16.4.7, >= 16.5.0-rc-1, < 16.10.2 | CVE List |
| org.xwiki.platform:xwiki-platform-oldcore (Maven) | from 1.0 before 15.10.16, from 16.0.0-rc-1 before 16.4.7, from 16.5.0-rc-1 before 16.10.2 | GitHub Advisory Database |
| xwiki xwiki | from 1.0 before 15.10.16, from 16.0.0 before 16.4.7, from 16.5.0 before 16.10.2 | NVD |
All scores
| GitHub_M | 9.3critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
XWiki is a generic wiki platform. 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 vulnerability is fixed in 16.10.2, 16.4.7, and 15.10.16.
GitHub Advisory Database
Impact
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.
Patches
This has been patched in 16.10.2, 16.4.7 and 15.10.16.
Workarounds
There is no known workaround, other than upgrading XWiki.
References
https://jira.xwiki.org/browse/XWIKI-22734
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
NVD (es)
XWiki es una plataforma wiki genérica. Es posible ejecutar cualquier consulta SQL en Oracle mediante funciones como DBMS_XMLGEN o DBMS_XMLQUERY. El validador de consultas de XWiki no depura las funciones que se usarían en una selección simple, e Hibernate permite usar cualquier función nativa en una consulta HQL. Esta vulnerabilidad se corrigió en las versiones 16.10.2, 16.4.7 y 15.10.16.
References
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-prwh-7838-xf82 | vendor-advisory, web | |
| https://github.com/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d | web | |
| https://jira.xwiki.org/browse/XWIKI-22734 | issue-tracking, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-56158 | advisory | |
| https://github.com/xwiki/xwiki-platform | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-56158 changed 2026-01-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-prwh-7838-xf82 changed 2026-02-03 | CC-BY-4.0 |
| NVD | CVE-2024-56158 changed 2026-06-17 | Public domain |