VulnWatch by ve1ve2
high 8.8 EPSS 0.80%

GHSA-jmmc-wjpc-pg34: XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
org.xwiki.platform:xwiki-platform-rest-server

https://osv.dev/vulnerability/GHSA-jmmc-wjpc-pg34 ↗

osvmavenfix-available

XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes ### Impact The query REST API allows executing HQL queries to filter the listed pages. While this properly checks access rights for the current user, the query can be used to combine when clauses and blind queries, to recover values, through FROM clause injection to join BaseObject and StringProperty tables, bypassing the HQL validator's SELECT column whitelist. This allows recovering any data that is stored in the database, including data from inaccessible pages, password hashes and passwords stored in configuration properties. For a typical password hash, this requires about 800 requests to the REST API (about one per bit). It should be assumed that when using more complex techniques, this even works when the attacker cannot read any wiki page. Password hashes use salted SHA1 in XWiki which can be cracked offline for weak passwords. Further, the executed database queries could be slow, affecting the availability of the system. ### Patches The vulnerability has been fixed in XWiki 16.10.18, 17.10.5 and 18.2.0 by disabling the HQL and WXQL queries in the REST API by default. ### Workarounds The requests to the `/rest/wikis/{wikiName}/query` endpoint could be blocked at the web server/reverse proxy level. Affected: Maven:org.xwiki.platform:xwiki-platform-rest-server Fixed in: 16.10.18, 18.2.0, 17.10.5 References: https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-jmmc-wjpc-pg34 https://nvd.nist.gov/vuln/detail/CVE-2026-61689 https://github.com/xwiki/xwiki-platform/commit/4d6a2cd9cd049d0c31823ce47bff0a95667967e3 https://github.com/xwiki/xwiki-platform/commit/62b034daceead8e292244d6c9e651c0ee8b1354c https://github.com/xwiki/xwiki-platform/commit/ae540bc3def0d4a30210eb9bead4e559984b4462 https://github.com/xwiki/xwiki-platform/commit/b63d383f2e2a41826c21a76d678b9b0e1ab0ce52 https://github.com/xwiki/xwiki-platform https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-16.10.18

Linked vulnerabilities (2)

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N

XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes

CWE: CWE-943Aliases: CVE-2026-61689
CVE-2026-61689 high 8.8 EPSS 0.80% (p58) NVDCVE.orgGHSA
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes

CWE: CWE-943Aliases: GHSA-jmmc-wjpc-pg34NVD: Received

Also reported by (1)