CWE
270
Advisory Published
Advisory Published
Updated

CVE-2023-37912: XWiki Rendering's footnote macro vulnerable to privilege escalation via the footnote macro

First published: Wed Oct 25 2023(Updated: )

### 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 * https://jira.xwiki.org/browse/XRENDERING-688 * https://github.com/xwiki/xwiki-rendering/commit/5f558b8fac8b716d19999225f38cb8ed0814116e

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Xwiki Xwiki-rendering<14.10.6
Xwiki Xwiki-rendering=15.0-rc1
maven/org.xwiki.platform:xwiki-core-rendering-macro-footnotes<14.10.6
14.10.6
maven/org.xwiki.rendering:xwiki-rendering-macro-footnotes>=15.0-rc-1<15.1-rc-1
15.1-rc-1
maven/org.xwiki.rendering:xwiki-rendering-macro-footnotes<14.10.6
14.10.6

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the impact of CVE-2023-37912?

    The vulnerability allows privilege escalation from a simple user account to programming rights and remote code execution.

  • Which software versions are affected by CVE-2023-37912?

    CVE-2023-37912 affects versions up to and including 14.10.6 of org.xwiki.platform:xwiki-core-rendering-macro-footnotes and org.xwiki.rendering:xwiki-rendering-macro-footnotes, and versions up to and including 15.1-rc-1 of org.xwiki.rendering:xwiki-rendering-macro-footnotes.

  • How severe is CVE-2023-37912?

    CVE-2023-37912 is classified as critical with a severity value of 10.

  • How can I fix CVE-2023-37912?

    To fix CVE-2023-37912, update your software to at least version 14.10.6 of org.xwiki.platform:xwiki-core-rendering-macro-footnotes and org.xwiki.rendering:xwiki-rendering-macro-footnotes, or update to a version newer than 15.1-rc-1 of org.xwiki.rendering:xwiki-rendering-macro-footnotes.

  • Where can I find more information about CVE-2023-37912?

    You can find more information about CVE-2023-37912 in the following references: [GitHub Advisory](https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-35j5-m29r-xfq5), [GitHub Commit](https://github.com/xwiki/xwiki-rendering/commit/5f558b8fac8b716d19999225f38cb8ed0814116e), [XWiki Issue](https://jira.xwiki.org/browse/XRENDERING-688).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203