# CVE-2024-56158: XWiki allows SQL injection in query endpoint of REST API with Oracle

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2025-06-12T14:56:56.939Z
- Modified: 2026-06-17T08:11:46.087Z
- Also known as: GHSA-prwh-7838-xf82
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 1.0, < 15.10.16; >= 16.0.0-rc-1, < 16.4.7; >= 16.5.0-rc-1, < 16.10.2
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 1.0 before 15.10.16; from 16.0.0-rc-1 before 16.4.7; from 16.5.0-rc-1 before 16.10.2
- xwiki xwiki: from 1.0 before 15.10.16; from 16.0.0 before 16.4.7; from 16.5.0 before 16.10.2

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `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`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-prwh-7838-xf82> (vendor-advisory, web)
- <https://github.com/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d> (web)
- <https://jira.xwiki.org/browse/XWIKI-22734> (issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-56158> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2024-56158](https://www.cve.org/CVERecord?id=CVE-2024-56158), CVE Terms of Use, modified 2026-01-12
- GitHub Advisory Database: [GHSA-prwh-7838-xf82](https://github.com/advisories/GHSA-prwh-7838-xf82), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2024-56158](https://nvd.nist.gov/vuln/detail/CVE-2024-56158), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56158 · Whole record: https://cve.day/CVE-2024-56158.json · Rebuilt by cve.day 2026-11-25T22:58:52.751Z
