CVE-2024-56158 XWiki allows SQL injection in query endpoint of REST API with Oracle
CriticalCVSS 9.3
EPSS 0.53%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| org.xwiki.platform/xwiki-platform-oldcore(Maven) | >= 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 | Fixed |
| xwiki | >= 1.0, < 15.10.16; >= 16.0.0, < 16.4.7; >= 16.5.0, < 16.10.2 | 15.10.16, 16.4.7, 16.10.2 | Fixed |
| xwiki-platform | = >= 1.0, < 15.10.16; = >= 16.0.0-rc-1, < 16.4.7; = >= 16.5.0-rc-1, < 16.10.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.xwiki.platform/xwiki-platform-oldcore(Maven) | >= 1.0, < 15.10.16 | 15.10.16 |
| org.xwiki.platform/xwiki-platform-oldcore(Maven) | >= 16.0.0-rc-1, < 16.4.7 | 16.4.7 |
| org.xwiki.platform/xwiki-platform-oldcore(Maven) | >= 16.5.0-rc-1, < 16.10.2 | 16.10.2 |
| xwiki-platform | = >= 1.0, < 15.10.16 | No fix listed |
| xwiki-platform | = >= 16.0.0-rc-1, < 16.4.7 | No fix listed |
| xwiki-platform | = >= 16.5.0-rc-1, < 16.10.2 | No fix listed |
| xwiki | >= 1.0, < 15.10.16 | 15.10.16 |
| xwiki | >= 16.0.0, < 16.4.7 | 16.4.7 |
| xwiki | >= 16.5.0, < 16.10.2 | 16.10.2 |
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-prwh-7838-xf82 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d patch
- github.com product
- https://jira.xwiki.org/browse/XWIKI-22734 issue-tracking vendor-advisory
- github.com