CVE-2024-56158 Details
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.
A SQL injection vulnerability has been identified in XWiki versions 1.0 and later, within the query endpoint of the REST API when used with Oracle Database. The issue arises because the XWiki query validator fails to properly sanitize functions that can be exploited in a simple 'select' statement. This oversight allows the execution of arbitrary SQL queries by leveraging native Oracle functions such as DBMS_XMLGEN or DBMS_XMLQUERY. The vulnerability is made possible by Hibernate's allowance of native functions in HQL queries.
Users can upgrade to XWiki versions 16.10.2, 16.4.7, or 15.10.16 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d | [email protected] | |
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-prwh-7838-xf82 | [email protected] | Vendor Advisory |
| https://jira.xwiki.org/browse/XWIKI-22734 | [email protected] | Issue TrackingVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| xwiki xwiki | >= 1.0, < 15.10.16 >= 16.0.0, < 16.4.7 >= 16.5.0, < 16.10.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 12, 2026 | CVE Modified | [email protected] |
| Sep 3, 2025 | Initial Analysis | [email protected] |
| Jun 12, 2025 | New CVE Received | [email protected] |