Threat Advisory

Unauthenticated XWiki Platform Search HQL Injection Exposes Database Password Hashes

Threat: Vulnerability
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: High
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-61689 with a CVSS score of 8.8 is a critical HQL injection vulnerability affecting the XWiki Platform REST API. The vulnerability resides in the query REST API, which permits the execution of HQL queries to filter listed pages. Although the system checks access rights for the current user, an attacker can exploit the query mechanism by combining conditional clauses and blind queries to recover sensitive values. This is achieved through FROM clause injection, which joins the BaseObject and StringProperty tables, bypassing the HQL validator's SELECT column whitelist. The attack vector is network-based and requires no prior authentication or user interaction, allowing unauthenticated attackers to extract any data stored in the database. This includes sensitive information from inaccessible pages, password hashes, and passwords stored in configuration properties. Recovering a typical password hash requires approximately 800 requests to the REST API, one per bit. Since XWiki uses salted SHA1 for password hashing, weak passwords can be cracked offline. Additionally, the executed database queries can be slow, potentially affecting system availability and causing business disruption through data breaches and service degradation.

RECOMMENDATION:

We recommend you to update org.xwiki.platform:xwiki-platform-rest-server to version 16.10.18, 17.10.5, or 18.2.0 or later.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-61689 with a CVSS score of 8.8 is a critical HQL injection vulnerability affecting the XWiki Platform REST API. The vulnerability resides in the query REST API, which permits the execution of HQL queries to filter listed pages. Although the system checks access rights for the current user, an attacker can exploit the query mechanism by combining conditional clauses and blind queries to recover sensitive values. This is achieved through FROM clause injection, which joins the BaseObject and StringProperty tables, bypassing the HQL validator's SELECT column whitelist. The attack vector is network-based and requires no prior authentication or user interaction, allowing unauthenticated attackers to extract any data stored in the database. This includes sensitive information from inaccessible pages, password hashes, and passwords stored in configuration properties. Recovering a typical password hash requires approximately 800 requests to the REST API, one per bit. Since XWiki uses salted SHA1 for password hashing, weak passwords can be cracked offline. Additionally, the executed database queries can be slow, potentially affecting system availability and causing business disruption through data breaches and service degradation.

RECOMMENDATION:

We recommend you to update org.xwiki.platform:xwiki-platform-rest-server to version 16.10.18, 17.10.5, or 18.2.0 or later.[emaillocker id="1283"]

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu