GHSA-2r87-74cx-2p7c

Suggest an improvement
Source
https://github.com/advisories/GHSA-2r87-74cx-2p7c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-2r87-74cx-2p7c/GHSA-2r87-74cx-2p7c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2r87-74cx-2p7c
Aliases
Published
2024-12-12T19:21:06Z
Modified
2024-12-12T22:33:07Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList
Details

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
Database specific
{
    "nvd_published_at": "2024-12-12T20:15:21Z",
    "cwe_ids": [
        "CWE-96"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2024-12-12T19:21:06Z"
}
References

Affected packages

Maven / org.xwiki.platform:xwiki-platform-help-ui

Package

Name
org.xwiki.platform:xwiki-platform-help-ui
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-help-ui

Affected ranges

Type
ECOSYSTEM
Events
Introduced
9.7-rc-1
Fixed
15.10.11

Maven / org.xwiki.platform:xwiki-platform-help-ui

Package

Name
org.xwiki.platform:xwiki-platform-help-ui
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-help-ui

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.0.0-rc-1
Fixed
16.4.1

Maven / org.xwiki.platform:xwiki-platform-help-ui

Package

Name
org.xwiki.platform:xwiki-platform-help-ui
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-help-ui

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.5.0-rc-1
Fixed
16.5.0