CVE-2025-66473: Xwiki platform rest server Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-cc84-q3v3-mhgf
CWE-770
Published
Advisory Summary

CVE-2025-66473 is a HIGH remote code execution vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Xwiki platform rest server libraries in the Maven ecosystem. The issue involves xwiki's rest apis don't enforce any limits, leading to unavailability and oom in large wikis. Remediation is available by upgrading affected packages to version 16.10.11, 17.4.4, 17.7.0-rc-1.

CVE-2025-66473 at a Glance

CVE Identifier CVE-2025-66473
GHSA Identifier GHSA-cc84-q3v3-mhgf
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Xwiki platform rest server
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-66473

To remediate this vulnerability, upgrade all affected Xwiki platform rest server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.xwiki.platform:xwiki-platform-rest-server fixed: 16.10.11
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rest-server</artifactId>
    <version>16.10.11</version>
</dependency>
org.xwiki.platform:xwiki-platform-rest-server fixed: 17.4.4
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rest-server</artifactId>
    <version>17.4.4</version>
</dependency>
org.xwiki.platform:xwiki-platform-rest-server fixed: 17.7.0-rc-1
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rest-server</artifactId>
    <version>17.7.0-rc-1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.xwiki.platform

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-66473, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.xwiki.platform

Analyze the terminal output to locate any version of Xwiki platform rest server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.10.11), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.xwiki.platform command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Xwiki platform rest server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2025-66473 Affected Xwiki platform rest server Versions

3 component(s)
Fixed Versions:
16.10.1117.4.417.7.0-rc-1
Product / Package Ecosystem Affected Versions Fixed Version
org.xwiki.platform:xwiki-platform-rest-server
Maven
< 16.10.11
16.10.11
org.xwiki.platform:xwiki-platform-rest-server
Maven
≥ 17.0.0-rc-1
< 17.4.4
17.4.4
org.xwiki.platform:xwiki-platform-rest-server
Maven
≥ 17.5.0-rc-1
< 17.7.0-rc-1
17.7.0-rc-1

References

Frequently Asked Questions

What is CVE-2025-66473?
CVE-2025-66473 is a security vulnerability in Xwiki platform rest server involving XWiki's REST APIs don't enforce any limits, leading to unavailability and OOM in large wikis under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Xwiki platform rest server versions are affected?
Affected versions include releases prior to 16.10.11, 17.4.4, 17.7.0-rc-1 across affected packages: org.xwiki.platform:xwiki-platform-rest-server.
What version fixes CVE-2025-66473?
Upgrading to 16.10.11, 17.4.4, 17.7.0-rc-1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xwiki-platform-rest-server affected?
Yes, org.xwiki.platform:xwiki-platform-rest-server is affected in releases prior to 16.10.11, 17.4.4, 17.7.0-rc-1. Upgrade your dependency to 16.10.11, 17.4.4, 17.7.0-rc-1 or later.
What CWE is associated with CVE-2025-66473?
CVE-2025-66473 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Maven dependencies for CVE-2025-66473?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.xwiki.platform'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cc84-q3v3-mhgf",
  "modified" : "2025-12-11T15:47:49Z",
  "published" : "2025-12-10T15:46:57Z",
  "aliases" : [ "CVE-2025-66473" ],
  "summary" : "XWiki's REST APIs don't enforce any limits, leading to unavailability and OOM in large wikis",
  "details" : "### Impact\nXWiki'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.\n\n### Patches\nXWiki 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.\n\n### Workarounds\nWe're not aware of any workaround, except denying access to the affected REST resources in a proxy in front of XWiki.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-rest-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "16.10.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-rest-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "17.0.0-rc-1"
      }, {
        "fixed" : "17.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-rest-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "17.5.0-rc-1"
      }, {
        "fixed" : "17.7.0-rc-1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-cc84-q3v3-mhgf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-66473"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/commit/e3c47745195fb445b054537be86f5c01ee69558b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xwiki/xwiki-platform"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/XWIKI-23355"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-10T15:46:57Z",
    "nvd_published_at" : "2025-12-10T22:16:27Z"
  }
}