CVE-2024-55877: XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList

Published Dec 12, 2024
·
Updated

Impact Any user with an account can perform arbitrary remote code execution by adding instances of XWiki.WikiMacroClass to any page. This compromises the confidentiality, integrity and availability of the whole XWiki installation.

To reproduce on a instance, as a connected user without script nor programming rights, go to your user profile and add an object of type XWiki.WikiMacroClass. Set "Macro Id", "Macro Name" and "Macro Code" to any value, "Macro Visibility" to Current User and "Macro Description" to {{async}}{{groovy}}println("Hello from User macro!"){{/groovy}}{{/async}}. Save the page, then go to <host>/xwiki/bin/view/XWiki/XWikiSyntaxMacrosList. If the description of your new macro reads "Hello from User macro!", then your instance is vulnerable.

Patches This vulnerability has been fixed in XWiki 15.10.11, 16.4.1 and 16.5.0.

Workarounds It is possible to manually apply this patch to the page XWiki.XWikiSyntaxMacrosList.

References

https://jira.xwiki.org/browse/XWIKI-22030 https://github.com/xwiki/xwiki-platform/commit/40e1afe001d61eafdf13f3621b4b597a0e58a3e3

Other sources

XWiki Platform is a generic wiki platform. Starting in version 9.7-rc-1 and prior to versions 15.10.11, 16.4.1, and 16.5.0, any user with an account can perform arbitrary remote code execution by adding instances of XWiki.WikiMacroClass to any page. This compromises the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been fixed in XWiki 15.10.11, 16.4.1 and 16.5.0. It is possible to manually apply the patch to the page XWiki.XWikiSyntaxMacrosList as a workaround.

MITRE

Affected Software

6 affected componentsFixes available
XWiki xwiki>=9.7<15.10.11
XWiki xwiki>=16.0.0<16.4.1
XWiki xwiki=16.5.0-rc1
maven/org.xwiki.platform:xwiki-platform-help-ui>=16.5.0-rc-1<16.5.0
16.5.0
maven/org.xwiki.platform:xwiki-platform-help-ui>=16.0.0-rc-1<16.4.1
16.4.1
maven/org.xwiki.platform:xwiki-platform-help-ui>=9.7-rc-1<15.10.11
15.10.11

Event History

Dec 12, 2024
CVE Published
via MITRE·07:13 PM
Data Sourced
via MITRE·07:13 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·07:21 PM
Data Sourced
via GitHub·07:21 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-55877?

CVE-2024-55877 is classified as a critical vulnerability due to its potential for arbitrary remote code execution by any authenticated user.

2

How do I fix CVE-2024-55877?

To remediate CVE-2024-55877, upgrade to the fixed versions of the affected package, specifically 16.5.0, 16.4.1, or 15.10.11.

3

Who is affected by CVE-2024-55877?

Any user with an account on XWiki installations that are running versions prior to the fixed releases is vulnerable to CVE-2024-55877.

4

What type of exposure does CVE-2024-55877 create?

CVE-2024-55877 exposes the XWiki installation to risks related to confidentiality, integrity, and availability due to the potential for executing arbitrary code.

5

What actions should be taken if my system is vulnerable to CVE-2024-55877?

If your system is affected by CVE-2024-55877, it is crucial to apply the necessary updates immediately to mitigate any risk.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203