Vulnerability · Published Apr 10, 2024 · Assigned by GitHub_M
CVE-2024-31997XWiki Platform remote code execution from account through UIExtension parameters
Critical 10.0
In plain English
A critical-severity missing authorization in xwiki-platform from xwiki. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 73.9% (higher than 99.5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
XWiki Platform is a generic wiki platform. Prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, parameters of UI extensions are always interpreted as Velocity code and executed with programming rights. Any user with edit right on any document like the user's own profile can create UI extensions. This allows remote code execution and thereby impacts the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9-RC1. No known workarounds are available.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.xwiki.platform:xwiki-platform-uiextension-api | 14.10.19 | GHSA-c2gg-4gq4-jv5j |
| Maven | org.xwiki.platform:xwiki-platform-uiextension-api | 15.5.4 | GHSA-c2gg-4gq4-jv5j |
| Maven | org.xwiki.platform:xwiki-platform-uiextension-api | 15.9-rc-1 | GHSA-c2gg-4gq4-jv5j |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| xwiki | xwiki-platform | < 14.10.19>= 15.0-rc-1, < 15.5.4>= 15.6-rc-1, < 15.9-rc-1 |
Weakness: CWE-862 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-c2gg-4gq4-jv5j x_refsource_CONFIRM
- https://github.com/xwiki/xwiki-platform/commit/171e7c7d0e56deaa7b3678657ae26ef95379b1ea x_refsource_MISC
- https://github.com/xwiki/xwiki-platform/commit/1b2574eb966457ca4ef34e557376b8751d1be90d x_refsource_MISC
- https://github.com/xwiki/xwiki-platform/commit/56748e154a9011f0d6239bec0823eaaeab6ec3f7 x_refsource_MISC
- https://jira.xwiki.org/browse/XWIKI-21335 x_refsource_MISC