XWiki's REST APIs don't enforce any limits, leading to unavailability and OOM in large wikis
xwiki-platform
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-rest-server Maven |
|
|
xwiki-platform
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-rest-server Maven |
|
|
XWiki is an open-source wiki software platform. Versions 16.10.10 and below, 17.0.0-rc-1 through 17.4.3 and 17.5.0-rc-1 through 17.6.0 contain a REST API which doesn't enforce any limits for the number of items that can be requested in a single request at the moment. Depending on the number of pages in the wiki and the memory configuration, this can lead to slowness and unavailability of the wiki. As an example, the /rest/wikis/xwiki/spaces resource returns all spaces on the wiki by default, which are basically all pages. This issue is fixed in versions 17.4.4 and 16.10.11.
From the CVE record · GitHub_M
The XWiki REST API does not limit how many items a client can request at once. A request for many items can slow or make the wiki unavailable, depending on its page count and memory configuration. The input does not specify whether authentication or user interaction is required.
Operators using Maven package org.xwiki.platform:xwiki-platform-rest-server in versions before 16.10.11, from 17.0.0-rc-1 to before 17.4.4, or from 17.5.0-rc-1 to before 17.7.0-rc-1 should check their installations.