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.

Severity (CVSS 4.0)9.3Critical
Exploit odds (30 days)0.5%top 56.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Mavenorg.xwiki.platform:xwiki-platform-oldcore15.10.16GHSA-prwh-7838-xf82
Mavenorg.xwiki.platform:xwiki-platform-oldcore16.4.7GHSA-prwh-7838-xf82
Mavenorg.xwiki.platform:xwiki-platform-oldcore16.10.2GHSA-prwh-7838-xf82

Affected products (as reported)

VendorProductVersions
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