VDB
Sign up
HIGH8.7

GHSA-cc84-q3v3-mhgf

XWiki's REST APIs don't enforce any limits, leading to unavailability and OOM in large wikis

Quick fix

GHSA-cc84-q3v3-mhgf — org.xwiki.platform:xwiki-platform-rest-server: upgrade to the fixed version with the command below.

# pom.xml: bump <version>16.10.11</version> for org.xwiki.platform:xwiki-platform-rest-server

Details

### Impact XWiki's REST API 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.

### Patches XWiki 17.7.0RC1, 17.4.4 and 16.10.11 introduce a configurable limit, limiting responses to 1000 items by default. Requesting larger limits leads to an error now.

### Workarounds We're not aware of any workaround, except denying access to the affected REST resources in a proxy in front of XWiki.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.xwiki.platform:xwiki-platform-rest-server
Introduced in: 0Fixed in: 16.10.11
Fix# pom.xml: bump <version>16.10.11</version> for org.xwiki.platform:xwiki-platform-rest-server
Maven/org.xwiki.platform:xwiki-platform-rest-server
Introduced in: 17.0.0-rc-1Fixed in: 17.4.4
Fix# pom.xml: bump <version>17.4.4</version> for org.xwiki.platform:xwiki-platform-rest-server
Maven/org.xwiki.platform:xwiki-platform-rest-server
Introduced in: 17.5.0-rc-1Fixed in: 17.7.0-rc-1
Fix# pom.xml: bump <version>17.7.0-rc-1</version> for org.xwiki.platform:xwiki-platform-rest-server

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:maven/org.xwiki.platform/xwiki-platform-rest-server"]}'