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

Published Jun 12, 2025
·
Updated

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.

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 Email us at Security Mailing List

Other sources

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.

MITRE

Affected Software

6 affected componentsFixes available
maven/org.xwiki.platform:xwiki-platform-oldcore>=16.5.0-rc-1<16.10.2
16.10.2
maven/org.xwiki.platform:xwiki-platform-oldcore>=16.0.0-rc-1<16.4.7
16.4.7
maven/org.xwiki.platform:xwiki-platform-oldcore>=1.0<15.10.16
15.10.16
XWiki xwiki>=1.0<15.10.16
XWiki xwiki>=16.0.0<16.4.7
XWiki xwiki>=16.5.0<16.10.2

Event History

Jun 12, 2025
CVE Published
via MITRE·02:56 PM
Data Sourced
via MITRE·02:56 PM
DescriptionWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
Affected Software
Advisory Published
via GitHub·09:52 PM
Data Sourced
via GitHub·09:52 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-56158?

CVE-2024-56158 is classified as a critical vulnerability due to its potential to execute arbitrary SQL queries.

2

What software versions are affected by CVE-2024-56158?

CVE-2024-56158 affects XWiki versions between 15.10.16 and 16.10.2, and 16.0.0-rc-1 to 16.4.7.

3

How do I fix CVE-2024-56158?

To mitigate CVE-2024-56158, upgrade your XWiki installation to the recommended versions 15.10.16, 16.4.7, or 16.10.2.

4

What is the impact of CVE-2024-56158?

CVE-2024-56158 allows unauthorized users to execute any SQL query against the Oracle database via unverified functions.

5

Is CVE-2024-56158 related to SQL injection vulnerabilities?

Yes, CVE-2024-56158 can be exploited similarly to SQL injection vulnerabilities, enabling unauthorized database access.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203