CVE-2024-56158
criticalpriority · track · 39EPSS 0.005 · 43 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 8.1–9.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (18)
Products and version ranges known to be affected.
- Maven org.xwiki.platform:xwiki-platform-oldcore1.0 → 15.10.16osvUSpkg:maven/org.xwiki.platform/xwiki-platform-oldcore
- Maven org.xwiki.platform:xwiki-platform-oldcore16.0.0-rc-1 → 16.4.7osvUSpkg:maven/org.xwiki.platform/xwiki-platform-oldcore
- Maven org.xwiki.platform:xwiki-platform-oldcore16.5.0-rc-1 → 16.10.2osvUSpkg:maven/org.xwiki.platform/xwiki-platform-oldcore
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-1317xwiki: Schwachstelle ermöglicht SQL InjectionDeutsch2025-06-12csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in xwiki ausnutzen, um einen SQL Injection Angriff durchzuführen.
- GHSA-prwh-7838-xf82XWiki allows SQL injection in query endpoint of REST API with Oracle2025-06-12ghsa · osvUS
### Impact It's possible to execute any SQL query in Oracle by using the function like [DBMS_XMLGEN or DBMS_XMLQUERY](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_XMLGEN.html). 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. ### Patches This has been patched in 16.10.2, 16.4.7 and 15.10.16. ### Workarounds There is no known workaround, other than upgrading XWiki. ### References https://jira.xwiki.org/browse/XWIKI-22734 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira XWiki.org](https://jira.xwiki.org/) * Email us at [Security Mailing List](mailto:security@xwiki.org)
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2024-56158cnnvd
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-prwh-7838-xf82cnnvd
- https://jira.xwiki.org/browse/XWIKI-22734cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2024-56158cnnvd
- https://www.xwiki.org/xwiki/bin/view/Main/WebHomePatchcnnvd
- https://github.com/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8denisa_euvd
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-prwh-7838-xf82enisa_euvd
- https://jira.xwiki.org/browse/XWIKI-22734enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan