XWiki allows SQL injection in query endpoint of REST API with Oracle
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| XWiki | xwiki-platform | 1.0 to before 15.10.16; 16.0.0-rc-1 to before 16.4.7; 16.5.0-rc-1 to before 16.10.2 | 15.10.16, 16.4.7, 16.10.2 | Patch available | CNA |
| — | org.xwiki.platform:xwiki-platform-oldcore (Maven) | 1.0 to before 15.10.16 | 15.10.16 | Patch available | GHSA-prwh-7838-xf82 |
| — | org.xwiki.platform:xwiki-platform-oldcore (Maven) | 16.0.0-rc-1 to before 16.4.7 | 16.4.7 | Patch available | GHSA-prwh-7838-xf82 |
| — | org.xwiki.platform:xwiki-platform-oldcore (Maven) | 16.5.0-rc-1 to before 16.10.2 | 16.10.2 | Patch available | GHSA-prwh-7838-xf82 |
- xwiki-platform VendorXWiki Affected 1.0 to before 15.10.16; 16.0.0-rc-1 to before 16.4.7; 16.5.0-rc-1 to before 16.10.2 Fixed in 15.10.16, 16.4.7, 16.10.2 Patch available CNA
- org.xwiki.platform:xwiki-platform-oldcore (Maven) Vendor— Affected 1.0 to before 15.10.16 Fixed in 15.10.16 Patch available GHSA-prwh-7838-xf82
- org.xwiki.platform:xwiki-platform-oldcore (Maven) Vendor— Affected 16.0.0-rc-1 to before 16.4.7 Fixed in 16.4.7 Patch available GHSA-prwh-7838-xf82
- org.xwiki.platform:xwiki-platform-oldcore (Maven) Vendor— Affected 16.5.0-rc-1 to before 16.10.2 Fixed in 16.10.2 Patch available GHSA-prwh-7838-xf82
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* | 1.0 to before 15.10.16; 16.0.0 to before 16.4.7; 16.5.0 to before 16.10.2 | Vulnerable | XWiki |
- cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* Versions 1.0 to before 15.10.16; 16.0.0 to before 16.4.7; 16.5.0 to before 16.10.2 Vulnerable ·XWiki
Remediation
- Fix · CNA xwiki-platform (xwiki) Fixed in 15.10.16, 16.4.7, 16.10.2
- Fix · GHSA-prwh-7838-xf82 org.xwiki.platform:xwiki-platform-oldcore (Maven) Fixed in 15.10.16 Advisory →
- Fix · GHSA-prwh-7838-xf82 org.xwiki.platform:xwiki-platform-oldcore (Maven) Fixed in 16.4.7 Advisory →
- Fix · GHSA-prwh-7838-xf82 org.xwiki.platform:xwiki-platform-oldcore (Maven) Fixed in 16.10.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-56158
- 2026-10-03 Alias added: GHSA-prwh-7838-xf82
References
Advisory 3
More Xwiki vulnerabilities
- TI-2025-18595 Remote code execution as guest via SolrSearchMacros request in xwiki KEVCVSS 3.1CRITICAL 9.8
- TI-2023-25214 Remote code execution through the section parameter in Administration as guest in XWiki Platform CVSS 3.1CRITICAL 10.0
- TI-2025-23500 XWiki Platform vulnerable to SQL injection through getdeleteddocuments.vm template sort parameter CVSS 4.0CRITICAL 9.3
- TI-2025-23979 org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API CVSS 4.0CRITICAL 9.3
- TI-2024-20829 XWiki Platform: Remote code execution from account via SearchSuggestSourceSheet CVSS 3.1CRITICAL 10.0
- TI-2024-14375 XWiki Remote Code Execution vulnerability via user registration CVSS 3.1CRITICAL 10.0
Sources
- CVE-2024-56158 · CVE Program
- CVE-2024-56158 · NVD
- FIRST EPSS
- GHSA-prwh-7838-xf82 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences