SQL injection in XWiki platform - CVE-2024-56158
Published: May 5, 2026
XWiki platform
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary SQL queries.
The vulnerability exists due to improper neutralization of special elements used in an SQL command in the query endpoint of the REST API when processing HQL queries on Oracle. A remote attacker can send a specially crafted query using native Oracle functions to execute arbitrary SQL queries.
The issue affects Oracle deployments because Hibernate allows using native functions in an HQL query and the query validator does not sanitize functions used in a simple select.