CVE-2024-56158 json
XWiki allows SQL injection in query endpoint of REST API with Oracle
published last yr. modified 4mo ago also EUVD-2024-54677 , GHSA-prwh-7838-xf82
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 45%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.xwiki.platform:xwiki-platform-oldcore 15.10.16, 16.4.7, 16.10.2
- org.xwiki.platform xwiki-platform-oldcore 15.10.16, 16.4.7, 16.10.2
- xwiki xwiki 15.10.16, 16.4.7, 16.10.2
Is CVE-2024-56158 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
0.53% chance of exploitation in the next 30 days, higher than 45% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.3 | 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 |
| CNA | 4.0 | 9.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.xwiki.platform:xwiki-platform-oldcore | >=1.0, <15.10.16 >=16.0.0-rc-1, <16.4.7 >=16.5.0-rc-1, <16.10.2 |
15.10.16 16.4.7 16.10.2 |
Affected products
- xwiki xwiki-platform
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d
web
-
github.com
/xwiki/xwiki-platform/security/advisories/GHSA-prwh-7838-xf82
web, vendor-advisory
-
jira.xwiki.org
/browse/XWIKI-22734
web, issue-tracking, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-56158
advisory
-
github.com
/xwiki/xwiki-platform
package
Sources
- CVE List CVE-2024-56158
- GitHub Advisory GHSA-prwh-7838-xf82
- NVD CVE-2024-56158
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.