CVE-2024-56158
JSON

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 packageVersionsReported by
xwiki xwiki-platform>= 1.0, < 15.10.16, >= 16.0.0-rc-1, < 16.4.7, >= 16.5.0-rc-1, < 16.10.2CVE 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.2GitHub Advisory Database
xwiki xwikifrom 1.0 before 15.10.16, from 16.0.0 before 16.4.7, from 16.5.0 before 16.10.2NVD

All scores

GitHub_M9.3critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-89

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:

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

Sources

SourceRecordLicence
CVE ListCVE-2024-56158 changed 2026-01-12CVE Terms of Use
GitHub Advisory DatabaseGHSA-prwh-7838-xf82 changed 2026-02-03CC-BY-4.0
NVDCVE-2024-56158 changed 2026-06-17Public domain