Vulnerabilities in pkg:maven/org.xwiki.platform/xwiki-platform-index-tree-macro

PACKAGE
Advisory Identifier: GHSA-p5f8-qf24-24cj
Advisory Summary

CVE-2023-50732 is a HIGH (CVSS 8.3) velocity execution without script right vulnerability (CWE-863: Incorrect Authorization) affecting Xwiki platform index tree macro libraries in the Maven ecosystem. The issue involves velocity execution without script right through tree macro. Remediation is available by upgrading affected packages to version 14.10.7, 15.2-rc-1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.xwiki.platform/xwiki-platform-index-tree-macro

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.xwiki.platform/xwiki-platform-index-tree-macro. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p5f8-qf24-24cj CVE-2023-50732 HIGH Velocity execution without script right through tree macro

CVE-2023-50732 at a Glance

CVE Identifier CVE-2023-50732
GHSA Identifier GHSA-p5f8-qf24-24cj
Severity HIGH
CVSS v3.1 Base Score 8.3
CWE Classification CWE-863: Incorrect Authorization
Affected Product Xwiki platform index tree macro
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2023-50732

To remediate this vulnerability, upgrade all affected Xwiki platform index tree macro 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-index-tree-macro fixed: 14.10.7
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-index-tree-macro</artifactId>
    <version>14.10.7</version>
</dependency>
org.xwiki.platform:xwiki-platform-index-tree-macro fixed: 15.2-rc-1
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-index-tree-macro</artifactId>
    <version>15.2-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-2023-50732, 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 index tree macro in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.10.7), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Xwiki platform index tree macro, 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 It's possible to execute a Velocity script without script right through the document tree. To reproduce: * As a user without script right, create a document, e.g., named Nasty Title * Set the document's title to `$request.requestURI` * Click "Save & View" * Reload the page in the browser The navigation panel displays a document named with the current URL, showing that the Velocity code has been executed even though the user doesn't have script right. ### Patches This has been patched in XWiki 14.10.7 and 15.2RC1. ### Workarounds A possible workaround is to: * modify the page XWiki.DocumentTreeMacros * search for the code `#set ($discard = $translatedDocument.setTitle($translatedDocument.title))` * modify it into `#set ($discard = $translatedDocument.setcomment(''))` ### References * https://jira.xwiki.org/browse/XWIKI-20625 * https://github.com/xwiki/xwiki-platform/commit/41d7dca2d30084966ca6a7ee537f39ee8354a7e3 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira XWiki.org](https://jira.xwiki.org/) * Email us at [Security Mailing List](mailto:security@xwiki.org)

CVE-2023-50732 Affected Xwiki platform index tree macro Versions

2 component(s)
Fixed Versions:
14.10.715.2-rc-1
Product / Package Ecosystem Affected Versions Fixed Version
org.xwiki.platform:xwiki-platform-index-tree-macro
Maven
≥ 8.3-rc-1
< 14.10.7
14.10.7
org.xwiki.platform:xwiki-platform-index-tree-macro
Maven
≥ 15.0-rc-1
< 15.2-rc-1
15.2-rc-1

References

Frequently Asked Questions

What is CVE-2023-50732?
CVE-2023-50732 is a security vulnerability in Xwiki platform index tree macro involving Velocity execution without script right through tree macro under CWE-863: Incorrect Authorization.
Which Xwiki platform index tree macro versions are affected?
Affected versions include releases prior to 14.10.7, 15.2-rc-1 across affected packages: org.xwiki.platform:xwiki-platform-index-tree-macro.
What version fixes CVE-2023-50732?
Upgrading to 14.10.7, 15.2-rc-1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xwiki-platform-index-tree-macro affected?
Yes, org.xwiki.platform:xwiki-platform-index-tree-macro is affected in releases prior to 14.10.7, 15.2-rc-1. Upgrade your dependency to 14.10.7, 15.2-rc-1 or later.
What is the CVSS score of CVE-2023-50732?
CVE-2023-50732 has a CVSS v3.1 base score of 8.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L.
What CWE is associated with CVE-2023-50732?
CVE-2023-50732 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check Maven dependencies for CVE-2023-50732?
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-p5f8-qf24-24cj",
  "modified" : "2023-12-21T21:58:59Z",
  "published" : "2023-12-19T21:39:31Z",
  "aliases" : [ "CVE-2023-50732" ],
  "summary" : "Velocity execution without script right through tree macro",
  "details" : "### Impact\n\nIt's possible to execute a Velocity script without script right through the document tree.\n\nTo reproduce:\n\n* As a user without script right, create a document, e.g., named Nasty Title\n* Set the document's title to `$request.requestURI`\n* Click \"Save & View\"\n* Reload the page in the browser\n\nThe navigation panel displays a document named with the current URL, showing that the Velocity code has been executed even though the user doesn't have script right.\n\n### Patches\n\nThis has been patched in XWiki 14.10.7 and 15.2RC1.\n\n### Workarounds\n\nA possible workaround is to:\n* modify the page XWiki.DocumentTreeMacros\n* search for the code `#set ($discard = $translatedDocument.setTitle($translatedDocument.title))`\n* modify it into `#set ($discard = $translatedDocument.setcomment(''))`\n\n### References\n\n* https://jira.xwiki.org/browse/XWIKI-20625\n* https://github.com/xwiki/xwiki-platform/commit/41d7dca2d30084966ca6a7ee537f39ee8354a7e3\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)\n* Email us at [Security Mailing List](mailto:security@xwiki.org)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-index-tree-macro"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.3-rc-1"
      }, {
        "fixed" : "14.10.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-index-tree-macro"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.0-rc-1"
      }, {
        "fixed" : "15.2-rc-1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-p5f8-qf24-24cj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50732"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/commit/41d7dca2d30084966ca6a7ee537f39ee8354a7e3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xwiki/xwiki-platform"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/XWIKI-20625"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-19T21:39:31Z",
    "nvd_published_at" : "2023-12-21T20:15:07Z"
  }
}