🛡️ CVE-2024-56158 — xwiki

🔴 CVSS 9.8 — Critical ✅ No Known Exploit CWE-89 NVD
9.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

XWiki allows SQL injection in query endpoint of REST API with Oracle

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:

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2024-56158 is classified as CWE-89: SQL Injection. Untrusted input is concatenated into an SQL statement, letting an attacker change the query and reach data the request should not return.

Affected software

CVE-2024-56158 is recorded against 2 packages.

  • org.xwiki.platform:xwiki-platform-oldcore (from 16.5.0-rc-1 up to 16.10.2)
  • xwiki (from 16.5.0 up to 16.10.2)

Timeline and source

Published on 12 June 2025 and last revised on 3 February 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)
jira.xwiki.org (Web)

Details

Severity CRITICAL
CVSS Score 9.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE CWE-89
Public Exploit ✅ No
Source NVD
Published 2025-06-12
Updated 2026-08-12
Modified 2026-02-03
Fix URL N/A

Affected Packages

Software From version Fixed in
org.xwiki.platform:xwiki-platform-oldcore 16.5.0-rc-1 16.10.2
xwiki 16.5.0 16.10.2

Similar Threats

Exploit Protection

Are you running xwiki?

CVE-2024-56158 carries CVSS 9.8 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2024-56158 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2024