Skip to content
High 8.8

XWiki Platformで認証なしにデータベースの内容を抜き取られる脆弱性

CVE-2026-61689 First seen on SecPulse

Summary

XWiki Platformの/rest/wikis/{wikiName}/queryというRESTエンドポイントに、HQLインジェクションの脆弱性が見つかりました。認証のない攻撃者が、閲覧できないページの情報を含むデータベースの値を取り出せ、パスワードのハッシュなども対象になります。影響を受けるのは4.3-milestone-1から16.10.18、17.10.5、18.2.0より前の版で、修正版は16.10.18、17.10.5、18.2.0です。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

XWiki Platformの/rest/wikis/{wikiName}/queryというRESTエンドポイントに、HQLインジェクションの脆弱性が見つかりました。認証のない攻撃者が、閲覧できないページの情報を含むデータベースの値を取り出せ、パスワードのハッシュなども対象になります。影響を受けるのは4.3-milestone-1から16.10.18、17.10.5、18.2.0より前の版で、修正版は16.10.18、17.10.5、18.2.0です。

Affected packages

PackageAffected → Fixed
xwikixwiki-platform —
Mavenorg.xwiki.platform:xwiki-platform-rest-server
< 17.10.5→ 17.10.5
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details