CVE-2025-54385CWE-20

XWiki Platform's searchDocuments API allows for SQL injection

High · published July 26, 2025

CVSS v4.0
8.6
EPSS
1%
Percentile
49.9
In the wild
Unconfirmed
What it is

🚨 A sneaky SQL query could slip through your defenses! Versions 17.0.0-rc1 to 17.2.2 of XWiki are vulnerable to malicious injection, making your data ripe for the taking. 🔥 Think of it like a restaurant where the chef accepts orders directly from the customers without checking the kitchen rules — you're risking a surprise dish of chaos instead of a delicious meal! An attacker could leverage this vulnerability to execute arbitrary SQL queries on your Oracle database, potentially accessing or destroying sensitive data. The consequences could be absolutely devastating, leading to data breaches or unauthorized modifications that compromise your application's integrity.

Put simply

Think of it like a restaurant where the chef accepts orders directly from the customers without checking the kitchen rules — you're risking a surprise dish of chaos instead of a delicious meal! This vulnerability allows attackers to exploit the XWiki#searchDocuments APIs, which pass unvalidated queries straight to Hibernate. Despite having a restricted SELECT clause, HQL's native function support enables code injection via areas such as the WHERE clause.

What to do

An attacker could leverage this vulnerability to execute arbitrary SQL queries on your Oracle database, potentially accessing or destroying sensitive data. The consequences could be absolutely devastating, leading to data breaches or unauthorized modifications that compromise your application's integrity. Upgrade immediately to versions 16.10.6 or 17.3.0-rc-1 to patch this vulnerability. Review your database query practices to ensure proper sanitation at all levels, and consider implementing additional security measures like prepared statements. You've got this! Follow these steps and you'll be on your way to securing your XWiki installation in no time! 🛡️

The record
Technical detail
CVSS v4.0
8.6 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.00637 · 49.9th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2025-07-26T03:28Z
EPSS history
Timeline
  • 26 JUL 03:28Z
    XWiki Platform's searchDocuments API allows for SQL injection
    cvelistv5