Security Digest · Vulnerability record

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

XWiki is a generic wiki platform. It's possible to execute any SQL query in Oracle by using the function like DBMSXMLGEN or DBMSXMLQUERY.

CVSS 9.3 Critical EPSS 0.5% · p43

Should you act?

Critical and remotely reachable

No known exploitation yet, but it is network-reachable without credentials. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

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

From the GitHub advisory

Impact

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.

Patches

This has been patched in 16.10.2, 16.4.7 and 15.10.16.

Weakness type: CWE-89.

Product: org.xwiki.platform:xwiki-platform-oldcore (Maven) · Assigned by: GitHub_M · Published: 2025-06-12

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
Mavenorg.xwiki.platform:xwiki-platform-oldcore>= 1.0, < 15.10.1615.10.16
Mavenorg.xwiki.platform:xwiki-platform-oldcore>= 16.0.0-rc-1, < 16.4.716.4.7
Mavenorg.xwiki.platform:xwiki-platform-oldcore>= 16.5.0-rc-1, < 16.10.216.10.2
VendorProductAffected versions (per CVE record)
xwikixwiki-platform>= 1.0, < 15.10.16, >= 16.0.0-rc-1, < 16.4.7, >= 16.5.0-rc-1, < 16.10.2

Severity scores

Scored byCVSSScoreVector
GitHub_M4.09.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHub4.09.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
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Attack requirements: none
  • Privileges required: none (no login)
  • User interaction: none

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

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

Timeline

  • — CVE record published by GitHub_M
  • — GitHub-reviewed advisory GHSA-prwh-7838-xf82 published (critical)
  • — CVE record last updated

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-prwh-7838-xf82 github.com
  2. CVE.org record CVE-2024-56158 cve.org
  3. NVD entry CVE-2024-56158 nvd.nist.gov

Other references from the CVE record and advisory

  1. github.com github.com
  2. github.com github.com
  3. jira.xwiki.org jira.xwiki.org

Critical Maven advisories · Today’s Security Digest