---
title: "CVE-2024-56158: XWiki allows SQL injection in query endpoint of REST API with Oracle"
url: https://erroneo.us/security/cve/CVE-2024-56158/
description: "CVE-2024-56158 (org.xwiki.platform:xwiki-platform-oldcore (Maven)): XWiki is a generic wiki platform. It's possible to execute any SQL query in Oracle by…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-06-12
date_modified: 2026-01-12
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-56158"
kev: false
cvss: 9.3
epss: 0.00512
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 0.5% , percentile 43: FIRST’s model estimates a 0.5% chance of exploitation activity in the next 30 days, higher than 43% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes org.xwiki.platform:xwiki-platform-oldcore (Maven) >= 1.0, < 15.10.16, fixed in 15.10.16 ; org.xwiki.platform:xwiki-platform-oldcore (Maven) >= 16.0.0-rc-1, < 16.4.7, fixed in 16.4.7 ; org.xwiki.platform:xwiki-platform-oldcore (Maven) >= 16.5.0-rc-1, < 16.10.2, fixed in 16.10.2 . Check your lockfile, including transitive dependencies.

## What it is

XWiki is a generic wiki platform. It's possible to execute any SQL query in Oracle by using the function like DBMSXMLGEN or DBMSXMLQUERY. 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.

## Affected packages

- Maven `org.xwiki.platform:xwiki-platform-oldcore` >= 1.0, < 15.10.16 → fixed: 15.10.16
- Maven `org.xwiki.platform:xwiki-platform-oldcore` >= 16.0.0-rc-1, < 16.4.7 → fixed: 16.4.7
- Maven `org.xwiki.platform:xwiki-platform-oldcore` >= 16.5.0-rc-1, < 16.10.2 → fixed: 16.10.2

## Affected products (CVE record)

- xwiki xwiki-platform: >= 1.0, < 15.10.16, >= 16.0.0-rc-1, < 16.4.7, >= 16.5.0-rc-1, < 16.10.2

## Severity

- GitHub_M CVSS 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`
- GitHub CVSS 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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.51% probability of exploitation activity in the next 30 days; percentile 43.

## Sources

- [GitHub Advisory GHSA-prwh-7838-xf82](https://github.com/advisories/GHSA-prwh-7838-xf82)
- [CVE.org record CVE-2024-56158](https://www.cve.org/CVERecord?id=CVE-2024-56158)
- [NVD entry CVE-2024-56158](https://nvd.nist.gov/vuln/detail/CVE-2024-56158)
- [github.com](https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-prwh-7838-xf82)
- [github.com](https://github.com/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d)
- [jira.xwiki.org](https://jira.xwiki.org/browse/XWIKI-22734)

---
Source page: https://erroneo.us/security/cve/CVE-2024-56158/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
