High

XWiki Rendering's footnote macro vulnerable to privilege escalation via the footnote macro

  • Disclosed: 25.10.2023
  • Updated: 11.10.2026 13:20

Impact

The footnote macro executed its content in a potentially different context than the one in which it was defined. In particular in combination with the include macro, this allows privilege escalation from a simple user account in XWiki to programming rights and thus remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki installation.

To reproduce, perform the following steps:

  1. Edit your user profile with the object editor and add an object of type DocumentSheetBinding with value XWiki.ClassSheet
  2. Edit your user profile with the wiki editor and add the syntax {{footnote}}{{groovy}}println("Hello " + "from groovy!"){{/groovy}}{{/footnote}}

When the text "Hello from groovy!" is displayed at the bottom of the document, the installation is vulnerable. Instead, an error should be displayed.

Patches

This vulnerability has been patched in XWiki 14.10.6 and 15.1-rc-1.

Workarounds

There is no workaround apart from upgrading to a fixed version of the footnote macro.

References

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.xwiki.platform:xwiki-core-rendering-macro-footnotes < 14.10.6 14.10.6
Java / Kotlin (Maven) org.xwiki.rendering:xwiki-rendering-macro-footnotes < 14.10.6, >= 15.0-rc-1, < 15.1-rc-1 14.10.6, 15.1-rc-1

References

CVSS score 8.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-270
Platform
Java / Kotlin (Maven)
Package
org.xwiki.platform:xwiki-core-rendering-macro-footnotes, org.xwiki.rendering:xwiki-rendering-macro-footnotes
Disclosed
25.10.2023
Updated
11.10.2026 13:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-35j5-m29r-xfq5 - CC BY 4.0

Vulnerability history: org.xwiki.rendering:xwiki-rendering-macro-footnotes

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.