Loading...
Skip to main content

CVE-2024-55877 — Vulnerability in...

CRITICAL

XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList

Published December 12, 2024Updated December 12, 2024Source: osv

Summary

### 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](https://github.com/xwiki/xwiki-platform/commit/40e1afe001d61eafdf13f3621b4b597a0e58a3e3#diff-92fee29683e671b8bc668e3cf4295713d6259f715e3954876049f9de77c0a9ef) to the page `XWiki.XWikiSyntaxMacrosList`. ### References * https://jira.xwiki.org/browse/XWIKI-22030 * https://github.com/xwiki/xwiki-platform/commit/40e1afe001d61eafdf13f3621b4b597a0e58a3e3

Advisory Timeline

  • First published December 12, 2024 (669 days ago).
  • Last revised December 12, 2024 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.xwiki.platform:xwiki-platform-help-ui to 16.4.1 or later
<!-- Update pom.xml dependency version to 16.4.1 for org.xwiki.platform:xwiki-platform-help-ui -->
Maven
Update org.xwiki.platform:xwiki-platform-help-ui to 16.5.0 or later
<!-- Update pom.xml dependency version to 16.5.0 for org.xwiki.platform:xwiki-platform-help-ui -->
Maven
Update org.xwiki.platform:xwiki-platform-help-ui to 15.10.11 or later
<!-- Update pom.xml dependency version to 15.10.11 for org.xwiki.platform:xwiki-platform-help-ui -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.xwiki.platform:xwiki-platform-help-ui
maven
All versions16.4.1
org.xwiki.platform:xwiki-platform-help-ui
maven
All versions16.5.0
org.xwiki.platform:xwiki-platform-help-ui
maven
All versions15.10.11

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2024-55877?
XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
How do I check if my project is affected by CVE-2024-55877?
CVE-2024-55877 affects org.xwiki.platform:xwiki-platform-help-ui. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-55877 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-2r87-74cx-2p7c

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies