CVE-2024-56158CWE-89

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

Critical · published June 12, 2025

CVSS v4.0
9.3
EPSS
1%
Percentile
42.8
In the wild
Unconfirmed
What it is

🚨 A crafty SQL command can run wild in XWiki, allowing attackers to unleash any SQL query on Oracle databases! 🔥 This is like a chef with a secret pass that lets them access the entire kitchen, cooking up any dish without a manager’s approval. It’s a recipe for disaster if exploited! An attacker could execute any SQL command, potentially exposing sensitive data, corrupting the database, or even taking complete control of the system. This could lead to catastrophic data breaches and operational havoc for any organization using XWiki!

Put simply

This is like a chef with a secret pass that lets them access the entire kitchen, cooking up any dish without a manager’s approval. It’s a recipe for disaster if exploited! This vulnerability arises because XWiki's query validator fails to sanitize dangerous SQL functions like DBMS_XMLGEN and DBMS_XMLQUERY, allowing attackers to inject harmful commands through HQL queries.

What to do

An attacker could execute any SQL command, potentially exposing sensitive data, corrupting the database, or even taking complete control of the system. This could lead to catastrophic data breaches and operational havoc for any organization using XWiki! Immediately upgrade to XWiki versions 16.10.2, 16.4.7, or 15.10.16 to close this critical gap. Additionally, review your configurations and implement strict input validation to prevent similar vulnerabilities in the future. You've got this! With swift action, you can secure your XWiki setup and keep your data safe! 🛡️

The record
Technical detail
CVSS v4.0
9.3 · CRITICAL
Vector
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
EPSS
0.00512 · 42.8th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2025-06-12T14:56Z
EPSS history
Timeline
  • 12 JUN 14:56Z
    XWiki allows SQL injection in query endpoint of REST API with Oracle
    cvelistv5