Vulnerability · Published Jun 12, 2025 · Assigned by GitHub_M
CVE-2024-56158XWiki allows SQL injection in query endpoint of REST API with Oracle
Critical 9.3
In plain English
A critical-severity SQL injection in xwiki-platform from xwiki. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.xwiki.platform:xwiki-platform-oldcore | 15.10.16 | GHSA-prwh-7838-xf82 |
| Maven | org.xwiki.platform:xwiki-platform-oldcore | 16.4.7 | GHSA-prwh-7838-xf82 |
| Maven | org.xwiki.platform:xwiki-platform-oldcore | 16.10.2 | GHSA-prwh-7838-xf82 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| xwiki | xwiki-platform | >= 1.0, < 15.10.16>= 16.0.0-rc-1, < 16.4.7>= 16.5.0-rc-1, < 16.10.2 |
Weakness: CWE-89 · Vector: 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
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-prwh-7838-xf82 x_refsource_CONFIRM
- https://github.com/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d x_refsource_MISC
- https://jira.xwiki.org/browse/XWIKI-22734 x_refsource_MISC